WrightTools.artists.plot_margins

WrightTools.artists.plot_margins(*, fig=None, inches=1.0, centers=True, edges=True)[source]

Add lines onto a figure indicating the margins, centers, and edges.

Useful for ensuring your figure design scripts work as intended, and for laying out figures.

Parameters
  • fig (matplotlib.figure.Figure object (optional)) – The figure to plot onto. If None, gets current figure. Default is None.

  • inches (float (optional)) – The size of the figure margin, in inches. Default is 1.

  • centers (bool (optional)) – Toggle for plotting lines indicating the figure center. Default is True.

  • edges (bool (optional)) – Toggle for plotting lines indicating the figure edges. Default is True.