matplotlib 3.5.1

BackRef

pyplot is mainly intended for interactive plots and simple cases of programmatic plot generation:

import numpy as np
import matplotlib.pyplot as plt

x = np.arange(0, 5, 0.1)
y = np.sin(x)
plt.plot(x, y)

The explicit (object-oriented) API is recommended for complex plots, though pyplot is still usually used to create the figure and often the axes in the figure. See .pyplot.figure , .pyplot.subplots , and .pyplot.subplot_mosaic to create figures, and Axes API <../axes_api> for the plotting methods on an axes:

import numpy as np
import matplotlib.pyplot as plt

x = np.arange(0, 5, 0.1)
y = np.sin(x)
fig, ax = plt.subplots()
ax.plot(x, y)

matplotlib.pyplot is a state-based interface to matplotlib. It provides an implicit, MATLAB-like, way of plotting. It also opens figures on your screen, and acts as the figure GUI manager.

matplotlib.pyplot is a state-based interface to matplotlib. It provides an implicit, MATLAB-like, way of plotting. It also opens figures on your screen, and acts as the figure GUI manager.

pyplot is mainly intended for interactive plots and simple cases of programmatic plot generation:

import numpy as np
import matplotlib.pyplot as plt

x = np.arange(0, 5, 0.1)
y = np.sin(x)
plt.plot(x, y)

The explicit (object-oriented) API is recommended for complex plots, though pyplot is still usually used to create the figure and often the axes in the figure. See .pyplot.figure , .pyplot.subplots , and .pyplot.subplot_mosaic to create figures, and Axes API <../axes_api> for the plotting methods on an axes:

import numpy as np
import matplotlib.pyplot as plt

x = np.arange(0, 5, 0.1)
y = np.sin(x)
fig, ax = plt.subplots()
ax.plot(x, y)

Examples

See :

Back References

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

scipy

204 Elements
scipy.signal.exponential
scipy.signal.windows._windows.boxcar
scipy.signal._wavelets.morlet2
scipy.interpolate._polyint.krogh_interpolate
scipy.signal._filter_design.gammatone
scipy.signal._ltisys.dimpulse
scipy.spatial._qhull.ConvexHull
scipy.signal.bartlett
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.windows._windows.barthann
scipy.signal.chebwin
scipy.signal._czt.CZT
scipy.spatial.transform._rotation_spline.RotationSpline
scipy.signal.boxcar
scipy.interpolate._polyint.barycentric_interpolate
scipy.signal._arraytools.even_ext
scipy.signal._signaltools.lfilter
scipy.interpolate._ndgriddata.griddata
scipy.signal.windows._windows.hann
scipy.signal._waveforms.square
scipy.signal._bsplines.cspline1d
scipy.signal._filter_design.cheb2ord
scipy.signal._filter_design.iirdesign
scipy.signal._peak_finding.peak_widths
scipy.signal._ltisys.lsim2
scipy.optimize._optimize.rosen
scipy.signal.blackmanharris
scipy.interpolate._polyint.approximate_taylor_polynomial
scipy.signal._filter_design.lp2lp
scipy.fft._basic.fft
scipy.signal._signaltools.resample_poly
scipy.integrate._quadrature.cumulative_trapezoid
scipy.integrate._quad_vec.quad_vec
scipy.signal.windows._windows.chebwin
scipy.signal.parzen
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.signal.barthann
scipy.interpolate._bsplines.make_interp_spline
scipy.signal._signaltools.oaconvolve
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.flattop
scipy.signal._ltisys.dstep
scipy.signal._fir_filter_design.minimum_phase
scipy.signal.windows._windows.triang
scipy.signal._filter_design.ellip
scipy.special._orthogonal.jacobi
scipy.signal.windows._windows.exponential
scipy.signal._filter_design.lp2bs
scipy.special._orthogonal.genlaguerre
scipy.signal._signaltools.filtfilt
scipy.misc._common.face
scipy.signal.windows._windows.blackman
scipy.fft._basic.ifft
scipy.signal.windows._windows.cosine
scipy.signal.gaussian
scipy.signal._fir_filter_design.kaiserord
scipy.signal._waveforms.sawtooth
scipy.interpolate._fitpack2.UnivariateSpline
scipy.spatial._kdtree.KDTree.query_ball_point
scipy.signal._filter_design.butter
scipy.signal._ltisys.impulse
scipy.signal._filter_design.group_delay
scipy.signal._spectral_py.csd
scipy.signal.windows._windows.tukey
scipy.interpolate._fitpack_impl.splrep
scipy.interpolate._interpolate.lagrange
scipy.spatial._plotutils.voronoi_plot_2d
scipy.signal._filter_design.iircomb
scipy.signal._filter_design.bessel
scipy.signal._filter_design.bilinear
scipy.signal.hann
scipy.signal._lti_conversion.cont2discrete
scipy.spatial._kdtree.KDTree.query_pairs
scipy.signal._signaltools.correlate
scipy.signal.tukey
scipy.spatial._plotutils.convex_hull_plot_2d
scipy.signal._ltisys.step
scipy.signal.bohman
scipy.signal._spectral_py.istft
scipy.signal._wavelets.cwt
scipy.signal.hamming
scipy.interpolate._ndgriddata.NearestNDInterpolator
scipy.signal.windows._windows.kaiser
scipy.signal.cosine
scipy.misc._common.electrocardiogram
scipy.signal._waveforms.chirp
scipy.signal._czt.czt_points
scipy.signal._ltisys.lti.bode
scipy.signal._signaltools.correlate2d
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._ltisys.step2
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.windows._windows.taylor
scipy.signal._signaltools.sosfilt
scipy.spatial._qhull.Delaunay
scipy.signal._ltisys.impulse2
scipy.signal._spectral_py.welch
scipy.signal.windows._windows.bartlett
scipy.signal._filter_design.lp2hp
scipy.spatial._plotutils.delaunay_plot_2d
scipy.signal.triang
scipy.optimize._optimize.bracket
scipy.interpolate._fitpack2.InterpolatedUnivariateSpline
scipy.special._orthogonal.hermite
scipy.signal.windows._windows.bohman
scipy.signal._spectral_py.spectrogram
scipy.signal._arraytools.odd_ext
scipy.signal._czt.ZoomFFT
scipy.interpolate._rbfinterp.RBFInterpolator
scipy.signal._ltisys.place_poles
scipy.optimize._minpack_py.curve_fit
scipy.spatial._qhull.HalfspaceIntersection
scipy.signal._spectral_py.periodogram
scipy.interpolate._cubic.pchip_interpolate
scipy.signal.blackman
scipy.signal.windows._windows.nuttall
scipy.optimize._zeros_py.newton
scipy.signal._filter_design.freqs
scipy.signal.windows._windows.general_gaussian
scipy.spatial._kdtree.KDTree.query_ball_tree
scipy.signal.windows._windows.gaussian
scipy.signal.windows._windows.flattop
scipy.special._orthogonal.gegenbauer
scipy.signal._signaltools.fftconvolve
scipy.signal._waveforms.gausspulse
scipy.special._spherical_bessel.spherical_yn
scipy.signal._ltisys.freqresp
scipy.signal._filter_design.lp2bp
scipy.signal._filter_design.iirnotch
scipy.signal._peak_finding.find_peaks
scipy.signal.windows._windows.general_hamming
scipy.special._basic.diric
scipy.signal.kaiser
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.general_gaussian
scipy.signal._spectral_py.stft
scipy.signal.windows._windows.parzen
scipy.signal._signaltools.convolve
scipy.fft._basic.fftn
scipy.special._spherical_bessel.spherical_jn
scipy.interpolate._fitpack2.LSQSphereBivariateSpline
scipy.signal._peak_finding.peak_prominences
scipy.signal._filter_design.freqs_zpk
scipy.signal.nuttall
scipy.special._spherical_bessel.spherical_in
scipy.signal._filter_design.cheby1
scipy.signal._signaltools.hilbert
scipy.signal.windows._windows.blackmanharris
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.signal._signaltools.convolve2d
scipy.interpolate._cubic.CubicSpline
scipy.interpolate._fitpack_py.splrep
scipy.interpolate.interpnd.LinearNDInterpolator
scipy.signal.windows._windows.hamming
scipy.signal._filter_design.bilinear_zpk
scipy.signal._ltisys.dbode

dask

31 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.random.RandomState.standard_t
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.laplace
dask.array.random.RandomState.pareto
dask.array.random.RandomState.power
dask.array.random.RandomState.logistic
dask.array.random.RandomState.lognormal
dask.array.random.RandomState.random_integers
dask.array.random.RandomState.poisson
dask.array.random.RandomState.zipf
dask.array.random.RandomState.hypergeometric
dask.array.random.RandomState.uniform
dask.array.creation.meshgrid
dask.array.random.RandomState.rayleigh
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

skimage

skimage.filters._gabor.gabor
skimage.filters._gabor.gabor_kernel
skimage.viewer.canvastools.painttool.PaintTool

networkx

networkx.drawing.nx_pylab.draw_networkx
networkx.drawing.nx_pylab.draw_networkx_edges

matplotlib

matplotlib.cm.ColormapRegistry.__call__
matplotlib.pyplot
matplotlib.widgets.SpanSelector
matplotlib.backends.backend_pdf.PdfPages
matplotlib.widgets.RectangleSelector

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#0
type: <class 'module'>
Commit: