Gnuplot: canvas size

when building my data using gnuplot, I feel that the right border is cropped, so the last x value is not completely visible. How to set canvas size?

plot

+7
source share
2 answers

Second answer

To increase the margins, see here . So something like:

set rmargin 5 

gotta do the trick.

First answer

You can explicitly set xrange as follows:

 set xrange [0:1e8] 

Alternatively, you can specify a range in plot :

 plot [0:1e8] ... 

If you want to dynamically change the x- and y-range, maybe this can help.

+5
source

Being pretty annoying to the tiny Gnuplot window, using only a modest tile of my screen and xrange / yrange , just picking up more / less data into the same tiny window, I came up exactly to the question: "How to enlarge the canvas area?". The answer I found (exactly what I was looking for),

 set terminal wxt size 1300,600 

where 1300 is the width and 600 is the height. They say that the option of specifying the size for the wxt terminal is available only in the latest versions of Gnuplot (for example, 4.2, as they say, is missing), but it works great for my 4.4.

+17
source

All Articles