From: Jason Garcia on
This is kind of a picky question but I would really appreciate any help.
I have a y-axis label on a boxplot of around -4 x 10^-4 to 1 x 10^-4 (that is exactly how it is displayed). It increases by increments of 0.0002.

However, I want it to display the y-axis label of -0.0004 -0.0002 0.0000 0.0002 . . .

Any help would be great.
From: Steven_Lord on


"Jason Garcia" <jason.garcia24(a)gmail.com> wrote in message
news:i3ele1$pij$1(a)fred.mathworks.com...
> This is kind of a picky question but I would really appreciate any help.
> I have a y-axis label on a boxplot of around -4 x 10^-4 to 1 x 10^-4 (that
> is exactly how it is displayed). It increases by increments of 0.0002.
>
> However, I want it to display the y-axis label of -0.0004 -0.0002 0.0000
> 0.0002 . . .
> Any help would be great.

SET the YTickLabel property of the axes in which the boxplot is located.
You'll probably want to use SPRINTF in conjunction with the locations of the
ticks (which you can GET from the YTick property) to construct the labels.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com