maximize#

maximize(fig=None, die=False)[source]#

Maximize the current (or supplied) figure. Note: not guaranteed to work for all Matplotlib backends (e.g., agg).

Parameters:
  • fig (Figure) – the figure object; if not supplied, use the current active figure

  • die (bool) – whether to propagate an exception if encountered (default no)

Example:

plt.plot([2,3,5])
sc.maximize()

New in version 1.0.0.