|
From: Ethan M. <merritt@u.washington.edu> - 2009-05-27 19:35:01
|
I don't see any bug here.
The resulting plots look correct to me, but I may misunderstand what you are
expecting to see.
Starting with the original query:
John W. Eaton >
> When I execute the following commands in gnuplot, the y2 tick marks appear
> to be linearly spaced and the y2 tick labels do not appear:
>
> set logscale y2
> plot sin (x) axes x1y1, exp (x) axes x1y2
The y2 tick labels do not appear simply because you never turned them on.
Try:
set y2tics
replot
> but after executing
>
> set logscale y
> replot
> they do appear, but then the y1 axis is also log scaled.
I don't see any y2 labels here. The tick marks on the right side that result
from this sequence of commands are the mirrored y1 ticks, not the y2 ticks.
> Is is possible to set them independently?
Certainly.
set ytics nomirror
set y2tics nomirror
unset log y
set log y2
On Wednesday 27 May 2009 11:45:56 Petr Mikulik wrote:
> There are wrong tics on the y2 axis if the following is set:
> set autoscale fix; set logscale y2
They look correct to me.
But to see them you have to first do
set ytics nomirror
set y2tics nomirror
> The problem was discovered in one of graphs produced by Octave.
> The problem is in gnuplot since version 4.0.
>
>
> reset
> set ytics
> set logscale y
> set yrange [1:100]
>
> set y2tics
> set logscale y2
> set y2range [1:100]
>
> plot 1+x*x
>
> pause -1
>
> set autoscale fix
> replot
>
>
> I don't see any reason why AUTOSCALE_FIXMIN causes double-exponentiation of
> the y2 axis.
It doesn't. If you change 'set autoscale fix' to 'set autoscale fixkeep'
then maybe that does what you want. But I'm not entirely sure what you
were expecting, so perhaps not.
In any case, I think there is some confusion about whether you are
really looking at y2tics, or whether you are looking at mirrored y1tics.
Ethan
|