mqr.plot.
Figure#
- class mqr.plot.Figure(width=6, height=3, m=1, n=1, backend=None, filename=None, rc_params=None, gridspec_kw=None, subplot_kw=None, **fig_kw)#
Context manager that creates, shows and closes matplotlib subplots.
Convenient in jupyter notebooks for reducing plotting boilerplate.
Examples
>>> with Figure(5, 3, m=1, n=2) as (fig, ax): >>> ax[0].plot(...) >>> seaborn.histplot(..., ax=ax[1])