matplotlib 3.5.1

NotesParametersBackRef
show(*, block=None)

Notes

Saving figures to file and showing a window at the same time

If you want an image file as well as a user interface window, use .pyplot.savefig before .pyplot.show . At the end of (a blocking) show() the figure is closed and thus unregistered from pyplot. Calling .pyplot.savefig afterwards would save a new and thus empty figure. This limitation of command order does not apply if the show is non-blocking or if you keep a reference to the figure and use .Figure.savefig .

Auto-show in jupyter notebooks

The jupyter backends (activated via %matplotlib inline , %matplotlib notebook , or %matplotlib widget ), call show() at the end of every cell by default. Thus, you usually don't have to call it explicitly there.

Parameters

block : bool, optional

Whether to wait for all figures to be closed before returning.

If :None:None:`True` block and run the GUI main loop until all figure windows are closed.

If :None:None:`False` ensure that all figure windows are displayed and return immediately. In this case, you are responsible for ensuring that the event loop is running to have responsive figures.

Defaults to True in non-interactive mode and to False in interactive mode (see .pyplot.isinteractive ).

Display all open figures.

See Also

ioff

Disable interactive mode.

ion

Enable interactive mode, which shows / updates the figure after every plotting command, so that calling show() is not necessary.

savefig

Save the figure to an image file instead of showing it on screen.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy

141 Elements
scipy.signal._wavelets.morlet2
scipy.interpolate._polyint.krogh_interpolate
scipy.signal._filter_design.gammatone
scipy.spatial._qhull.ConvexHull
scipy.signal._bsplines.cspline1d_eval
scipy.interpolate._bsplines.make_lsq_spline
scipy.interpolate._bspl.evaluate_all_bspl
scipy.special._spherical_bessel.spherical_kn
scipy.signal._czt.CZT
scipy.spatial.transform._rotation_spline.RotationSpline
scipy.interpolate._polyint.barycentric_interpolate
scipy.signal._arraytools.even_ext
scipy.signal._signaltools.lfilter
scipy.interpolate._ndgriddata.griddata
scipy.signal._filter_design.cheb2ord
scipy.signal._bsplines.cspline1d
scipy.signal._peak_finding.peak_widths
scipy.signal._ltisys.lsim2
scipy.optimize._optimize.rosen
scipy.interpolate._polyint.approximate_taylor_polynomial
scipy.fft._basic.fft
scipy.signal._signaltools.resample_poly
scipy.integrate._quadrature.cumulative_trapezoid
scipy.integrate._quad_vec.quad_vec
scipy.signal._filter_design.cheb1ord
scipy.signal._filter_design.buttord
scipy.interpolate._interpolate.interp2d
scipy.signal._ltisys.dfreqresp
scipy.signal.windows._windows.dpss
scipy.signal._waveforms.sweep_poly
scipy.interpolate._interpolate.interp1d
scipy.interpolate._bsplines.make_interp_spline
scipy.signal._filter_design.iirfilter
scipy.signal._ltisys.dlti.bode
scipy.signal._filter_design.sosfreqz
scipy.signal._max_len_seq.max_len_seq
scipy.signal.windows._windows.general_cosine
scipy.signal._czt.zoom_fft
scipy.signal._filter_design.ellip
scipy.special._orthogonal.jacobi
scipy.special._orthogonal.genlaguerre
scipy.misc._common.face
scipy.signal._signaltools.filtfilt
scipy.fft._basic.ifft
scipy.signal.windows._windows.cosine
scipy.signal._fir_filter_design.kaiserord
scipy.interpolate._fitpack2.UnivariateSpline
scipy.spatial._kdtree.KDTree.query_ball_point
scipy.signal._filter_design.butter
scipy.signal._filter_design.group_delay
scipy.signal._spectral_py.csd
scipy.interpolate._fitpack_impl.splrep
scipy.interpolate._interpolate.lagrange
scipy.spatial._plotutils.voronoi_plot_2d
scipy.signal._lti_conversion.cont2discrete
scipy.signal._filter_design.bessel
scipy.spatial._kdtree.KDTree.query_pairs
scipy.signal._signaltools.correlate
scipy.spatial._plotutils.convex_hull_plot_2d
scipy.signal._spectral_py.istft
scipy.signal._wavelets.cwt
scipy.interpolate._ndgriddata.NearestNDInterpolator
scipy.signal.cosine
scipy.misc._common.electrocardiogram
scipy.signal._waveforms.chirp
scipy.signal._czt.czt_points
scipy.signal._ltisys.lti.bode
scipy.signal._signaltools.wiener
scipy.signal._signaltools.sosfilt_zi
scipy.special._orthogonal.chebyu
scipy.signal._bsplines.qspline1d
scipy.signal._ltisys.lsim
scipy.signal._signaltools.resample
scipy.interpolate._bsplines.BSpline
scipy.linalg._basic.lstsq
scipy.spatial._qhull.tsearch
scipy.signal._wavelets.ricker
scipy.spatial._qhull.Voronoi
scipy.spatial._geometric_slerp.geometric_slerp
scipy.signal._spectral_py.lombscargle
scipy.interpolate._fitpack2.LSQUnivariateSpline
scipy.signal._filter_design.freqz
scipy.signal._filter_design.iirpeak
scipy.special._orthogonal.chebyt
scipy.signal._signaltools.sosfiltfilt
scipy.interpolate._fitpack2.RectSphereBivariateSpline
scipy.signal._bsplines.qspline1d_eval
scipy.signal._ltisys.bode
scipy.signal._waveforms.unit_impulse
scipy.signal._fir_filter_design.firls
scipy.fft._basic.ifftn
scipy.signal._signaltools.decimate
scipy.signal._filter_design.freqz_zpk
scipy.special._orthogonal.laguerre
scipy.signal._signaltools.sosfilt
scipy.spatial._qhull.Delaunay
scipy.signal._spectral_py.welch
scipy.spatial._plotutils.delaunay_plot_2d
scipy.optimize._optimize.bracket
scipy.interpolate._fitpack2.InterpolatedUnivariateSpline
scipy.special._orthogonal.hermite
scipy.signal._spectral_py.spectrogram
scipy.signal._arraytools.odd_ext
scipy.signal._czt.ZoomFFT
scipy.interpolate._rbfinterp.RBFInterpolator
scipy.optimize._minpack_py.curve_fit
scipy.spatial._qhull.HalfspaceIntersection
scipy.signal._spectral_py.periodogram
scipy.interpolate._cubic.pchip_interpolate
scipy.optimize._zeros_py.newton
scipy.signal._filter_design.freqs
scipy.spatial._kdtree.KDTree.query_ball_tree
scipy.special._orthogonal.gegenbauer
scipy.special._spherical_bessel.spherical_yn
scipy.signal._ltisys.freqresp
scipy.signal._filter_design.iirnotch
scipy.signal._peak_finding.find_peaks
scipy.special._basic.diric
scipy.misc._common.ascent
scipy.signal._bsplines.spline_filter
scipy.signal._fir_filter_design.remez
scipy.interpolate._bsplines.BSpline.integrate
scipy.signal._spectral_py.coherence
scipy.signal._spectral_py.stft
scipy.fft._basic.fftn
scipy.special._spherical_bessel.spherical_jn
scipy.signal._peak_finding.peak_prominences
scipy.signal._filter_design.freqs_zpk
scipy.signal._filter_design.cheby1
scipy.special._spherical_bessel.spherical_in
scipy.integrate._bvp.solve_bvp
scipy.integrate._odepack_py.odeint
scipy.signal._filter_design.ellipord
scipy.signal._arraytools.const_ext
scipy.integrate._ivp.ivp.solve_ivp
scipy.signal._filter_design.cheby2
scipy.interpolate._fitpack_py.splrep
scipy.interpolate._cubic.CubicSpline
scipy.interpolate.interpnd.LinearNDInterpolator
scipy.signal._filter_design.iircomb
scipy.signal._ltisys.dbode

dask

28 Elements
dask.array.ufunc.wrap_elemwise.<locals>.wrapped
dask.array.random.RandomState.gamma
dask.array.random.RandomState.triangular
dask.array.random.RandomState.standard_gamma
dask.array.ufunc.cosh
dask.array.random.RandomState.noncentral_chisquare
dask.array.ufunc.arccos
dask.array.random.RandomState.standard_cauchy
dask.array.random.RandomState.weibull
dask.array.random.RandomState.pareto
dask.array.random.RandomState.power
dask.array.random.RandomState.logistic
dask.array.random.RandomState.lognormal
dask.array.ufunc.sin
dask.array.random.RandomState.random_integers
dask.array.random.RandomState.poisson
dask.array.random.RandomState.zipf
dask.array.random.RandomState.uniform
dask.array.creation.meshgrid
dask.array.ufunc.absolute
dask.array.random.RandomState.vonmises
dask.array.ufunc.exp
dask.array.random.RandomState.noncentral_f
dask.array.ufunc.arctan
dask.array.random.RandomState.wald
dask.array.random.RandomState.logseries
dask.array.random.RandomState.normal
dask.array.random.RandomState.gumbel

matplotlib

matplotlib.pyplot.show
matplotlib.pyplot.pause
matplotlib.pyplot.plotting
matplotlib.pyplot.isinteractive
matplotlib.pyplot.ion
matplotlib.pyplot.ioff

skimage

skimage.viewer.canvastools.painttool.PaintTool
skimage.viewer.viewers.core.ImageViewer.show

papyri

papyri.examples.example2
papyri.gen.Gen.get_example_data
papyri.examples.example1

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /matplotlib/pyplot.py#323
type: <class 'function'>
Commit: