show(*, block=None)
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.
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.
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.
The following pages refer to to this document either explicitly or contain code examples using this.
scipy.signal._wavelets.morlet2scipy.interpolate._polyint.krogh_interpolatescipy.signal._filter_design.gammatonescipy.spatial._qhull.ConvexHullscipy.signal._bsplines.cspline1d_evalscipy.interpolate._bsplines.make_lsq_splinescipy.interpolate._bspl.evaluate_all_bsplscipy.special._spherical_bessel.spherical_knscipy.signal._czt.CZTscipy.spatial.transform._rotation_spline.RotationSplinescipy.interpolate._polyint.barycentric_interpolatescipy.signal._arraytools.even_extscipy.signal._signaltools.lfilterscipy.interpolate._ndgriddata.griddatascipy.signal._filter_design.cheb2ordscipy.signal._bsplines.cspline1dscipy.signal._peak_finding.peak_widthsscipy.signal._ltisys.lsim2scipy.optimize._optimize.rosenscipy.interpolate._polyint.approximate_taylor_polynomialscipy.fft._basic.fftscipy.signal._signaltools.resample_polyscipy.integrate._quadrature.cumulative_trapezoidscipy.integrate._quad_vec.quad_vecscipy.signal._filter_design.cheb1ordscipy.signal._filter_design.buttordscipy.interpolate._interpolate.interp2dscipy.signal._ltisys.dfreqrespscipy.signal.windows._windows.dpssscipy.signal._waveforms.sweep_polyscipy.interpolate._interpolate.interp1dscipy.interpolate._bsplines.make_interp_splinescipy.signal._filter_design.iirfilterscipy.signal._ltisys.dlti.bodescipy.signal._filter_design.sosfreqzscipy.signal._max_len_seq.max_len_seqscipy.signal.windows._windows.general_cosinescipy.signal._czt.zoom_fftscipy.signal._filter_design.ellipscipy.special._orthogonal.jacobiscipy.special._orthogonal.genlaguerrescipy.misc._common.facescipy.signal._signaltools.filtfiltscipy.fft._basic.ifftscipy.signal.windows._windows.cosinescipy.signal._fir_filter_design.kaiserordscipy.interpolate._fitpack2.UnivariateSplinescipy.spatial._kdtree.KDTree.query_ball_pointscipy.signal._filter_design.butterscipy.signal._filter_design.group_delayscipy.signal._spectral_py.csdscipy.interpolate._fitpack_impl.splrepscipy.interpolate._interpolate.lagrangescipy.spatial._plotutils.voronoi_plot_2dscipy.signal._lti_conversion.cont2discretescipy.signal._filter_design.besselscipy.spatial._kdtree.KDTree.query_pairsscipy.signal._signaltools.correlatescipy.spatial._plotutils.convex_hull_plot_2dscipy.signal._spectral_py.istftscipy.signal._wavelets.cwtscipy.interpolate._ndgriddata.NearestNDInterpolatorscipy.signal.cosinescipy.misc._common.electrocardiogramscipy.signal._waveforms.chirpscipy.signal._czt.czt_pointsscipy.signal._ltisys.lti.bodescipy.signal._signaltools.wienerscipy.signal._signaltools.sosfilt_ziscipy.special._orthogonal.chebyuscipy.signal._bsplines.qspline1dscipy.signal._ltisys.lsimscipy.signal._signaltools.resamplescipy.interpolate._bsplines.BSplinescipy.linalg._basic.lstsqscipy.spatial._qhull.tsearchscipy.signal._wavelets.rickerscipy.spatial._qhull.Voronoiscipy.spatial._geometric_slerp.geometric_slerpscipy.signal._spectral_py.lombscarglescipy.interpolate._fitpack2.LSQUnivariateSplinescipy.signal._filter_design.freqzscipy.signal._filter_design.iirpeakscipy.special._orthogonal.chebytscipy.signal._signaltools.sosfiltfiltscipy.interpolate._fitpack2.RectSphereBivariateSplinescipy.signal._bsplines.qspline1d_evalscipy.signal._ltisys.bodescipy.signal._waveforms.unit_impulsescipy.signal._fir_filter_design.firlsscipy.fft._basic.ifftnscipy.signal._signaltools.decimatescipy.signal._filter_design.freqz_zpkscipy.special._orthogonal.laguerrescipy.signal._signaltools.sosfiltscipy.spatial._qhull.Delaunayscipy.signal._spectral_py.welchscipy.spatial._plotutils.delaunay_plot_2dscipy.optimize._optimize.bracketscipy.interpolate._fitpack2.InterpolatedUnivariateSplinescipy.special._orthogonal.hermitescipy.signal._spectral_py.spectrogramscipy.signal._arraytools.odd_extscipy.signal._czt.ZoomFFTscipy.interpolate._rbfinterp.RBFInterpolatorscipy.optimize._minpack_py.curve_fitscipy.spatial._qhull.HalfspaceIntersectionscipy.signal._spectral_py.periodogramscipy.interpolate._cubic.pchip_interpolatescipy.optimize._zeros_py.newtonscipy.signal._filter_design.freqsscipy.spatial._kdtree.KDTree.query_ball_treescipy.special._orthogonal.gegenbauerscipy.special._spherical_bessel.spherical_ynscipy.signal._ltisys.freqrespscipy.signal._filter_design.iirnotchscipy.signal._peak_finding.find_peaksscipy.special._basic.diricscipy.misc._common.ascentscipy.signal._bsplines.spline_filterscipy.signal._fir_filter_design.remezscipy.interpolate._bsplines.BSpline.integratescipy.signal._spectral_py.coherencescipy.signal._spectral_py.stftscipy.fft._basic.fftnscipy.special._spherical_bessel.spherical_jnscipy.signal._peak_finding.peak_prominencesscipy.signal._filter_design.freqs_zpkscipy.signal._filter_design.cheby1scipy.special._spherical_bessel.spherical_inscipy.integrate._bvp.solve_bvpscipy.integrate._odepack_py.odeintscipy.signal._filter_design.ellipordscipy.signal._arraytools.const_extscipy.integrate._ivp.ivp.solve_ivpscipy.signal._filter_design.cheby2scipy.interpolate._fitpack_py.splrepscipy.interpolate._cubic.CubicSplinescipy.interpolate.interpnd.LinearNDInterpolatorscipy.signal._filter_design.iircombscipy.signal._ltisys.dbodedask.array.ufunc.wrap_elemwise.<locals>.wrappeddask.array.random.RandomState.gammadask.array.random.RandomState.triangulardask.array.random.RandomState.standard_gammadask.array.ufunc.coshdask.array.random.RandomState.noncentral_chisquaredask.array.ufunc.arccosdask.array.random.RandomState.standard_cauchydask.array.random.RandomState.weibulldask.array.random.RandomState.paretodask.array.random.RandomState.powerdask.array.random.RandomState.logisticdask.array.random.RandomState.lognormaldask.array.ufunc.sindask.array.random.RandomState.random_integersdask.array.random.RandomState.poissondask.array.random.RandomState.zipfdask.array.random.RandomState.uniformdask.array.creation.meshgriddask.array.ufunc.absolutedask.array.random.RandomState.vonmisesdask.array.ufunc.expdask.array.random.RandomState.noncentral_fdask.array.ufunc.arctandask.array.random.RandomState.walddask.array.random.RandomState.logseriesdask.array.random.RandomState.normaldask.array.random.RandomState.gumbelmatplotlib.pyplot.showmatplotlib.pyplot.pausematplotlib.pyplot.plottingmatplotlib.pyplot.isinteractivematplotlib.pyplot.ionmatplotlib.pyplot.ioffHover 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