gpos#

cfplot.gpos(pos: int = 1, xmin: float | int | None = None, xmax: float | int | None = None, ymin: float | int | None = None, ymax: float | int | None = None) → None[source]#

Set subplot position, starting at 1 for the top-left position.

Plots start at the top left and increase by one for each plot to the right. When the end of the row has been reached, the next plot will be the leftmost plot on the next row down.

To obtain full control over the plot position, all of the parameters xmin, xmax, ymin and ymax can be specified (all four are required, if any are given). In addition, cfp.gopen must have the user_position=True parameter set if these are specified.

Parameters:
  • pos (int, optional) -- Plot position, an integer starting at 1. For 1 plots at the top left and for the next integer up will plot the next subplot to the right, continuing to the next row down once the end of the row is reached. Defaults to 1.

  • xmin (float | int | None, optional) -- Minimum x-coordinate in normalised coordinates. Defaults to None.

  • xmax (float | int | None, optional) -- Maximum x-coordinate in normalised coordinates. Defaults to None.

  • ymin (float | int | None, optional) -- Minimum y-coordinate in normalised coordinates. Defaults to None.

  • ymax (float | int | None, optional) -- Maximum y-coordinate in normalised coordinates. Defaults to None.

Returns:

None

Raises:

ValueError -- If only some of xmin, xmax, ymin and ymax are specified.