|
From: Dima K. <gn...@di...> - 2018-11-07 05:03:29
|
Ethan Merritt <me...@uw...> writes: >> I have a very VERY non-square image file (attached). This is a 4000x20 >> png. I want to use gnuplot to plot it with a square aspect ratio. (In my >> actual use case, I'd plot stuff on top of it). I do this: >> >> set size ratio -1 >> plot "wide.png" binary filetype=auto with rgbimage >> >> Normally this works, but with such a wide image the "set size ratio -1" >> doesn't work: the image is scaled to fill the plot, and I get very tall >> and very skinny pixels. > > I do not understand the problem. > Of course the pixels are very tall and skinny, since there are 4000 > of them in one direction and only 20 in the other. Hi. I want a square aspect ratio of the thing being plotted (size ratio -1). This means: - square pixels - the image rendered by gnuplot should thus look like the input image: it should be very wide; i.e. not square The other mode is "size ratio 1" (or equivalently "size square"), which sets a square aspect ratio on the resulting image by making the pixels non-square. I'm attaching a less skewed image, so that you can see that "size ratio -1" is indeed the right thing. The issue here is that gnuplot behaves differently with the extra-wide image. |