|
From: Rusty T. <rus...@gm...> - 2023-02-25 21:49:25
|
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? > > > |
|
From: hchiPer <hc...@gm...> - 2023-02-27 07:40:07
|
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 > gnu...@li... > Membership management via: > https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: Rusty T. <rus...@gm...> - 2023-02-28 18:41:59
|
Excellent, thank you so very much. I compiled gnuplot 5.4.6 from https://sourceforge.net/projects/gnuplot/files/gnuplot/ On 2/26/23 23:39, hchiPer wrote: > 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 >> gnu...@li... >> Membership management via: >> https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: > https://lists.sourceforge.net/lists/listinfo/gnuplot-info |