manpagez: man pages & more
info gnuplot
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.21.44 offsets

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

Syntax:

 
      set offsets <left>, <right>, <top>, <bottom>
      unset offsets
      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 graph 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 `splot`s.

Example:

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

This graph 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.


© manpagez.com 2000-2025
Individual documents may contain additional copyright information.