Re: y2tics issue

m sutton <[email protected]>
Newsgroups gmane.comp.graphics.gnuplot.devel
Message-ID <[email protected]>
On 3/30/2021 8:18 PM, Ethan A Merritt wrote:
> On Tuesday, 30 March 2021 16:35:36 PDT m sutton wrote:
>> Hi all,
>>
>> Here is the script
>>
>> set yrange [-2:2]
>> set y2tics -1,1,1
>> set y2tics add ("top" 1,"middle" 0, "bottom" -1)
>>
>> plot sin(x)
>>
>>
>>
>>
>>
>> The commands place the desired y2axis tics in V5.2.8 and
>>        earlier.  However, I don't get any y2axis tics in V5.4.1 with
>>        either the X11 or QT terminals.  I do get this warning message
>>        "warning: y2 axis range undefined or overflow".
>>
>> show y2range yields:
>>
>>
>> set y2range [ * : * ] noreverse writeback  # (currently
>>          [1.00000e+308:-1.00000e+308] )
> You have no data or plot displayed to y2, and no range set,
> so the error message is correct.

This construct has worked for a long time.  I just wanted to make sure
something wasn't broken as I upgrade my plotting scripts to V5.4.

>
>> What am I missing?
> Either
>      plot sin(x) axes x1y2       # y1 axis is not used at all; autoscale y2
> or
>      set link y2                 # y2 replicates range and scaling from y1
>      plot sin(x)
>
>
My initial thought was to explicitly set y2range, but the set link y2
looks to be more flexible.

Thanks,

MikeS





_______________________________________________
gnuplot-beta mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.