Re: y2ticlabels

hchiPer <[email protected]> Mon, 27 Feb 2023 08:39:58 +0100
Newsgroups gmane.comp.graphics.gnuplot.user
Message-ID <[email protected]>
Hi,

I was not more successful than you in using y2ticlabels with gnuplot 
5.4.4, but it works with gnuplot 5.4.5 (binaries compiled by myself).

In this case, the y2labels are the values of the last column, with all 4 
decimals, which is not the result you expect.

To have y2tics identical to ytics you can use:

set xdata time
set timefmt "%Y %b %d"
set link y2
set y2tics
plot "/tmp/fn" using 1:4 with circles

Laurent




Le 25/02/23 à 22:49, Rusty Travis a écrit :
> On 2/22/23 10:25, Rusty Travis wrote:
>> Greetings, I'm having difficulty understanding the Help for 
>> y2ticlabels and would appreciate your assistance.
>>
>> The file I'm plotting is quite simple:
>> ...
>> 2023 Jan 31  12.3038
>> 2023 Jan 31  19.0661
>> 2023 Feb 01  9.8433
>> 2023 Feb 01  13.5022
>> 2023 Feb 01  13.5083
>> 2023 Feb 01  13.5318
>> 2023 Feb 02  10.9849
>> 2023 Feb 02  16.0072
>> ...
>>
>> gnuplot> set xdata time
>> gnuplot> set timefmt "%Y %b %d"
>> gnuplot> plot "/tmp/fn" using 1:4 with circles
>>
>> However, trying to plot y2ticlabels on the right of the plot the same 
>> as yticlabels seems difficult for me:
>> gnuplot> plot "/tmp/fn" using 1:4:y2ticlabels(4) with circles
>>
>> ... results in the same display as above.
>>
>> How do I do a simple y2ticlabels so that the right ordinate axis is 
>> displayed the same as the left axis, please?
>>
>>
>>
> 
> _______________________________________________
> gnuplot-info mailing list
> [email protected]
> Membership management via: 
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info


_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info