From: Srikanth on
Hello Marie,
Please try this:
set(gca,'YTickLabel',{'One';'Two';'Three';'Four'}).

You can add text whatever you want.

By default the YTickLabel is 'auto', that's why Matlab displays a scale factor. To remove this scale factor please set the YTickLabel to manual mode through Figure properties.

Hope this will help.

Kind regards,
Srikanth

"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
 | 
Pages: 1
Prev: Open button on gui toolbar
Next: BIC