From: sfeam <sf...@us...> - 2017-09-05 05:33:28
|
On Monday, 04 September 2017 19:50:25 Dima Kogan wrote: > Hi. This may seem convoluted, but is there a way to print the y2 tics > and axis labels on the LEFT edge of a plot? And similarly, x2 > tics,labels on the BOTTOM. > > This would be useful to me for the OSM-tile plotting in the other > thread: I want to have a nonlinear y1-y2 relationship, with an rgbimage > plotted against the axis that is linearly mapped to the terminal > coordinates (y in this case). Thus the axes I want to display to the > user are x2,y2 and I want them to be rendered in the "normal" place. > > Other ways to achieve this are welcome. The tics per se are easy. unset ytics; set y2tics mirror The labels are a bit harder because the auto-positioning was not really designed for this. You will have to adjust the exact offset and probably force the left margin to be larger because the program is not reserving space there for the y2 labels. set y2tics offset graph -1.025 right set lmargin screen .05 Ethan |