octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tests in log-scale plots


From: bpabbott
Subject: Re: tests in log-scale plots
Date: Wed, 07 Sep 2011 12:20:09 +0000 (GMT)

On Sep 07, 2011, at 07:48 AM, "c." <address@hidden> wrote:


On 7 Sep 2011, at 13:44, bpabbott wrote:

> Carlo, what is the value for the 'ydir' property after the "loglog(a,b)" plot?
>
> Is is actually reversed in 2007b? Since -10 < -1, I expect the setting of ydir is still normal
>
> Ben

Ben,

Now I see what you mean:

>> loglog (a, b)
>> get (gca, 'ydir')

ans =
normal

>>

On the other hand, to reproduce the same plot using abs (b) I have to do

>> loglog (a, abs(b))
>> set (gca, 'ydir', 'reverse')
>> get (gca, 'ydir')

ans =
reverse

c.
 
I think the proper way to handle negative numbers, in log plots, is to have the backend do the job.

For gnuplot this needs to be done in __go_draw_axes__.m

Ben



reply via email to

[Prev in Thread] Current Thread [Next in Thread]