From: Dima K. <gn...@di...> - 2017-09-01 20:01:53
|
Dima Kogan <gn...@di...> writes: > 2. Here I have pixels on x2y2 and latlon on xy. It also appears that > the thing that gets drawn on the plot is linear in xy, so the image > requires a nonlinear transformation (and thus we need the "pixels" > option). How is it decided what is drawn on the plot? What if I wanted > the drawn output to be linear in the pixels, but the rendered axes to > be nonlinear? Is this a specifiable choice, or does gnuplot always > pick the xy axes to render? To (partly) answer my own question: the x1y1 axis is rendered to the screen. So if I take the gnuplot script in question and 1. switch the forward/backward transforms in the 'set link' commands 2. change the plot command to 'axis x1y1' from 'axis x2y2' 3. change the range specs from touching the x1,y1 axes to the x2,y2 axes then the rendered plots look fine even without the "pixels". This is because in this case, the pixels live on the x1y1 axis, which is then linear with the output terminal axes, and the y2 axis is then the nonlinear one, but this doesn't directly affect the rendering. This popped up another behavior that looks like a bug: 'set y2tics auto' doesn't work here, and even explicitly asking for y2tics positions doesn't give me the requested tics, but I want to experiment a bit more before saying much more about this one. |