On 7 Sep 2011, at 02:30, Ben Abbott wrote:
> Just for clarity, I ran this in Matlab and attached a plot (loglog-demo-2.dpf).
> I noticed that 'ydir', isn't reversed. Instead Matlab made some bizarre choices.
on my system with matlab 2007b I see the plot in the attache screenshot,
the y axis is indeed reversed.
the plot in figure 1 (right) is obtained by
a = logspace (-5, 1, 10);
b =-logspace (-5, 1, 10);
loglog (a, b)
the plot in figure 2 (left) by
loglog (a, abs(b))
set (gca, 'ydir', 'reverse')
to me they look the same except for the sign of the yticklabels, don't they?
> get (gca, 'ytick')
> ans =
> -10.0000 -1.0000 -0.1000 -0.0100 -0.0010 -0.0001 -0.0000
so it seems the ytick labels are consistent with the y tick values.
c.