Am Freitag, dem 20.11.2026 um 12:56 +0100 schrieb Riccardo (Jack) Lucchetti:

I'm writing some code that produces plots. It would be very useful, given the type of plot I need, to be able to tweak its size. This is currently impossible with the gnuplot or plot commands, but one can overcome this limitation by embedding the plot inside a gpbuild block, as in

<hansl>
open denmark

gpbuild foo
    gnuplot LRM LRY
end gpbuild

gridplot foo --height=200 --output=display
</hansl>

It works, but it's a bit of a hack. 

I think I remember that the requirement of having a fixed sized output for gnuplot was linked to the necessity of being able to do all the clever things we have for tweaking the plot via our GUI tool. I think you need that for zooming too. There may be more, I can't remember offhand. 

I was thinking: how about enabling the --width and --height option for plot/gnuplot, stating clearly in the documentation that the resulting plot won't be editable, zoomable, etc?


Hi,

I totally agree that having the `--width` and `--height' option for both plot and gnuplot would be useful.

Some related feature request: A couple of weeks ago, a journal wanted a 300 dpi resolution png file which we cannot create right now. I had to ask some AI re-create a high-resolution version of those files. If I remember correctly, however, this is not that easy to realize sing gnuplot (we had some internal discussion about this some years ago).

Artur