pyiem.plot.layouts module#

Standardized layouts.

pyiem.plot.layouts.figure(logo='iem', title=None, subtitle=None, **kwargs)[source]#

Return an opinionated matplotlib figure.

Parameters:
  • figsize (width, height) – in inches for the figure, defaults to something good for twitter.

  • dpi (int) – dots per inch

  • logo (str) – Currently, ‘iem’, ‘dep’ is supported. None disables.

  • title (str) – Title to place on the figure.

  • subtitle (str) – SubTitle to place on the figure.

  • apctx (dict, optional) – autoplot context.

  • fig (matplotlib.figure.Figure) – Figure passed in for modification for figsize only currently.

Return type:

Figure

pyiem.plot.layouts.figure_axes(logo='iem', title=None, subtitle=None, **kwargs)[source]#

Return an opinionated matplotlib figure and one axes.

Parameters:
  • figsize (width, height) – in inches for the figure, defaults to something good for twitter.

  • dpi (int) – dots per inch

  • logo (str) – Currently, ‘iem’, ‘dep’ is supported. None disables.

  • title (str) – Title to place on the figure.

  • subtitle (str) – SubTitle to place on the figure.

Return type:

tuple[Figure, Axes]