pygmt.Figure.shift_origin

Figure.shift_origin(xshift=None, yshift=None)[source]

Shift plot origin in x and/or y directions.

This method shifts the plot origin relative to the current origin by (xshift, yshift). Optionally, append the length unit (c, i, or p). Default unit if not given is c for centimeter.

Prepend a to shift the origin back to the original position after plotting, prepend c to center the plot on the center of the paper (optionally add shift), prepend f to shift the origin relative to the fixed lower left corner of the page, or prepend r [Default] to move the origin relative to its current location.

Detailed usage at https://docs.generic-mapping-tools.org/latest/cookbook/options.html#plot-positioning-and-layout-the-x-y-options

Parameters
  • xshift (str) – Shift plot origin in x direction.

  • yshift (str) – Shift plot origin in y direction.

Examples using pygmt.Figure.shift_origin

Calculating grid gradient and radiance

Calculating grid gradient and radiance

Clipping grid values

Clipping grid values

3-D Scatter plots

3-D Scatter plots

Blockmean

Blockmean

Scatter plot with histograms

Scatter plot with histograms

Coastlines and borders

Coastlines and borders

Configuring PyGMT defaults

Configuring PyGMT defaults

Making subplots

Making subplots

Polar

Polar