arviz
arviz copied to clipboard
Matplotlib backend in JupyterLab Notebooks shows plots even when `show=False`
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