arviz icon indicating copy to clipboard operation
arviz copied to clipboard

Matplotlib backend in JupyterLab Notebooks shows plots even when `show=False`

Open forsakendaemon opened this issue 3 years ago • 0 comments

Describe the bug When generating plots in a Jupyter Notebook, because create_axes_grid calls matplotlib.pyplot.subplots, the resultant figure is automatically displayed even when show=False.

To Reproduce

import arviz as az
idata = az.from_netcdf("path/to/netcdf.nc")
axarr = az.plot_ess(idata, show=False)

Expected behavior Plots created in this way should not be displayed.

Additional context arviz: 0.11.2 matplotlib: 3.4.3 JupyterLab: 3.0.16

forsakendaemon avatar Aug 26 '21 06:08 forsakendaemon