Offsets

Offsets provide a mechanism to put a boundary around the data inside of an autoscaled plot.

Syntax:

        set offsets <left>, <right>, <top>, <bottom>
        set nooffsets
        show offsets

Each offset may be a constant or an expression. Each defaults to 0. Left and right offsets are given in units of the x axis, top and bottom offsets in units of the y axis. A positive offset expands the plot in the specified direction, e.g., a positive bottom offset makes ymin more negative. Negative offsets, while permitted, can have unexpected interactions with autoscaling and clipping.

Offsets are ignored in splots.

Example:

        set offsets 0, 0, 2, 2
        plot sin(x)

This plot of sin(x) will have a y range [-3:3] because the function will be autoscaled to [-1:1] and the vertical offsets are each two.