Will
Will

Reputation: 2978

Gnuplot: canvas size

when plotting my data using gnuplot, I experience that the right border is cut off, so the last x value is not completely visible. How can I set the canvas to be larger?

plot

Upvotes: 14

Views: 31853

Answers (2)

Ivan
Ivan

Reputation: 64237

Being pretty much annoyed by a tiny Gnuplot window making use of just a humble tile of my screen and xrange/yrange just fitting more/less data into the very same tiny window, I have came to exactly the question: "How to increase the canvas area?". The answer I've found (being exactly what I was looking for) is

set terminal wxt size 1300,600

where 1300 is the width and 600 is the height. The option of specifying size for the wxt terminal is said to be only available in the latest Gnuplot versions (for example 4.2 is said to be missing it) but it works just fine for my 4.4.

Upvotes: 36

Woltan
Woltan

Reputation: 14033

Second Answer

To enlarge the margins the plot see here. So something like:

set rmargin 5

should do the trick.

First Answer

You can explicitly set the xrange like so:

set xrange [0:1e8]

Alternatively you can specify the range in your plot command:

plot [0:1e8] ...

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

Upvotes: 6

Related Questions