[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tests in log-scale plots
From: |
c. |
Subject: |
Re: tests in log-scale plots |
Date: |
Wed, 7 Sep 2011 09:43:01 +0200 |
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.
- Re: tests in log-scale plots, (continued)
- Re: tests in log-scale plots, John W. Eaton, 2011/09/06
- Re: tests in log-scale plots, Ben Abbott, 2011/09/06
- Re: tests in log-scale plots, John W. Eaton, 2011/09/06
- Re: tests in log-scale plots, c., 2011/09/06
- Re: tests in log-scale plots, Ben Abbott, 2011/09/06
tests in log-scale plots, John W. Eaton, 2011/09/06
Re: tests in log-scale plots, Ben Abbott, 2011/09/06
- Re: tests in log-scale plots,
c. <=
- Re: tests in log-scale plots, bpabbott, 2011/09/07
- Re: tests in log-scale plots, c., 2011/09/07
- Re: tests in log-scale plots, bpabbott, 2011/09/07
- Re: tests in log-scale plots, Ben Abbott, 2011/09/10
- Re: tests in log-scale plots, Ben Abbott, 2011/09/11