Re: Adding Second Log Y-Axis for Pressure [message #72062] |
Fri, 13 August 2010 06:50 |
jeanh
Messages: 79 Registered: November 2009
|
Member |
|
|
On 12/08/2010 7:17 PM, Eichhoernchen wrote:
> I'm having problems getting the second y-axis on a contour plot
> working right. I set ystyle=8 in the contour command then put the
> following line below it:
> axis,yaxis=1,ylog=1,yrange=[500,50]
> All I get on the right y-axis is one tick with 100 on it. I'm
> basically trying to plot pressure but in a smallish pressure range.
> How can I specify the number of ticks marks and their corresponding
> values in a way that gives me more than one tick mark and in a log
> format?
> If I specify the number of tick marks they are plotted in equal
> intervals, which is not the log style I'm going for. I also tried
> specifying the interval and I think I'm not doing it right.
>
> This shouldn't be that hard, but I'm just not doing somethign right.
> I may have to resort to xyouts, but I'm trying to not do that since
> it seems like there has to be a way for this to work with the axis
> command.
> Any help would be greatly appreciated.
>
> Thanks!!!!
Hi,
from the help file, it is said that you should use Yticks=n AND YtickV =
[array of size n-1]
for example, this works well:
plot, [500,50],[500,50], /ylog, ystyle=1, yticks=5,
ytickv=[10,50,100,150,200,500]
Jean
|
|
|