pygmt.Figure.set_panel
- Figure.set_panel(panel=None, tag=None, clearance=None, verbose=False, **kwargs)
Set the current subplot panel to plot on.
Before you start plotting you must first select the active subplot. Note: If any projection option is passed with the question mark ? as scale or width when plotting subplots, then the dimensions of the plot are automatically determined by the subplot size and your region. For Cartesian plots: If you want the scale to apply equally to both dimensions then you must specify
projection="x"[The defaultprojection="X"will fill the subplot by using unequal scales].Aliases:
A = tag
C = clearance
V = verbose
- Parameters:
panel (
int|Sequence[int] |None, default:None) – index or (row, col). Sets the current subplot until further notice. Note: First row or col is 0, not 1. If not given we go to the next subplot by order specified viaautolabelinpygmt.Figure.subplot. As an alternative, you may bypass usingpygmt.Figure.set_paneland instead supply the common option panel=(row, col) to the first plot command you issue in that subplot. GMT maintains information about the current figure and subplot. Also, you may give the one-dimensional index instead which starts at 0 and follows the row or column order set viaautolabelinpygmt.Figure.subplot.tag (
str|None, default:None) – Tag for the current subplot. It overrides the automatic tag set by thepygmt.Figure.subplotmethod. Usetag="-"to skip the tag for this panel.clearance (
float|str|Sequence[float|str] |None, default:None) –Reserve a space between the margin and the current subplot. Such space will be left untouched by the main plotting but can be accessed by methods that plot scales, bars, text, etc. The clearance can be specified as either:
a single value (for same clearance on all sides). E.g.,
"1c".a pair of values (for separate horizontal and vertical clearances). E.g.,
("1c", "2c").a set of four values (for separate left, right, bottom, and top clearances). E.g.,
("1c", 0, "2c", 0).
This setting overrides the common clearances set by
clearancein the initialpygmt.Figure.subplotcall.verbose (
Literal['quiet','error','warning','timing','info','compat','debug'] |bool, default:False) – Select verbosity level [Full usage].