help-octave
[Top][All Lists]
Advanced

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

Re: yaxis labels with custom spacing


From: Matthias Brennwald
Subject: Re: yaxis labels with custom spacing
Date: Thu, 20 Dec 2007 19:17:04 +0100


On 20.12.2007, at 19:02, address@hidden wrote:

Date: Thu, 20 Dec 2007 17:42:04 +0100
From: Thomas Ilnseher <address@hidden>
Subject: yaxis labels with custom spacing
To: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset=UTF-8

I want to plot a bode diagram (phase)

the x axis is logarithmic, and the y axis is linear, from -90? to +90?.

I do a axis([10, 1000000, 90, -90]);
but the result is that the y-axis is labeled with: 80, 60, 40, 20,
0, ....
It would be better if the axis was labeled like:

90 45 0 -45 -90. Is there any possibility to achieve that ?

Thanks!

The following does the trick (I have Octave 2.9.18 with gnuplot 4.2 on Mac OS X):

set (gca,'ytick',[-90 -45 0 45 90])


Hth,
Matthias


reply via email to

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