From: neil on 21 Jul 2010 01:42 "Marie " <none(a)nospam.com> wrote in message <i25prc$7cg$1(a)fred.mathworks.com>... > Dear Matlab Users, > > Matlab typically puts a scale factor (i.e. x 10^5) on an axis when the units are too large to display. For example, in Matlab r2008b: > > plot(linspace(0,100), linspace(0,1e6)) > > will produce y labels of 0 to 10 x 10^5. I would like to eliminate this as in my application the axis consists of Matlab serial dates and I provide text tick marks corresponding to dates. The scaling label is not selectable and I don't see anything obvious looking through the axis properties that could be deleted or turned off. > > If anyone has ideas I would be appreciative. > > Thank you - Marie Try the datetick function after you plot datetick('x','yy'); This will make the x ticks to be years. You can customize this to another date format. Alternately you can set the xtick property of the axis see get(gca,'xtick') and set(gca,'xtick',[newTickMatrix])
|
Pages: 1 Prev: Solve() Next: Optimization: Setting bounds depending on solution |