Size

The set size command scales the displayed size of the plot.

Syntax:

        set size {{no}square} {<xscale>,<yscale>}
        show size

The <xscale> and <yscale> values are the scaling factors for the size. The defaults (1,1) are selected if the scaling factors are omitted. If square is specified, gnuplot will attempt to make the plot area square, to give polar plots the correct aspect ratio, for example. Success depends on the terminal driver selected. The plot area will be the largest square that will fit into the specified portion of the output.

Note that the size of the plot includes the space used by the labels; the plotting area itself is smaller. square takes only the plotting area into account.

If set key out is specified, the key is drawn at the far right edge of the usable area—you can use something like

   `set size square 0.9,1`
to bring it closer to the square plotting area.

On some terminals, changing the size of the plot will result in text being misplaced. Increasing the size of the plot may produce strange results. Decreasing is safer.

Examples:

To set the size to normal size use:

        set size 1,1
To make the plot half size and square use:
        set size square 0.5,0.5
To show the size use:
        show size

For the LaTeX and Fig terminals the default size (scale factor 1,1) is 5 inches wide by 3 inches high. The big Fig terminal (bfig) is 7 inches wide by 5 inches high. The PostScript default is landscape mode 10 inches wide and 7 inches high; portrait mode has these dimensions reversed, and EPS cuts them in half.