doc_content stringlengths 1 386k | doc_id stringlengths 5 188 |
|---|---|
matplotlib.pyplot.get_fignums matplotlib.pyplot.get_fignums()[source]
Return a list of existing figure numbers. | matplotlib._as_gen.matplotlib.pyplot.get_fignums |
matplotlib.pyplot.get_plot_commands matplotlib.pyplot.get_plot_commands()[source]
Get a sorted list of all of the plotting commands. | matplotlib._as_gen.matplotlib.pyplot.get_plot_commands |
matplotlib.pyplot.getp matplotlib.pyplot.getp(obj, *args, **kwargs)[source]
Return the value of an Artist's property, or print all of them. Parameters
objArtist
The queried artist; e.g., a Line2D, a Text, or an Axes.
propertystr or None, default: None
If property is 'somename', this function returns obj.g... | matplotlib._as_gen.matplotlib.pyplot.getp |
matplotlib.pyplot.ginput matplotlib.pyplot.ginput(n=1, timeout=30, show_clicks=True, mouse_add=MouseButton.LEFT, mouse_pop=MouseButton.RIGHT, mouse_stop=MouseButton.MIDDLE)[source]
Blocking call to interact with a figure. Wait until the user clicks n times on the figure, and return the coordinates of each click in ... | matplotlib._as_gen.matplotlib.pyplot.ginput |
matplotlib.pyplot.gray matplotlib.pyplot.gray()[source]
Set the colormap to 'gray'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | matplotlib._as_gen.matplotlib.pyplot.gray |
matplotlib.pyplot.grid matplotlib.pyplot.grid(visible=None, which='major', axis='both', **kwargs)[source]
Configure the grid lines. Parameters
visiblebool or None, optional
Whether to show the grid lines. If any kwargs are supplied, it is assumed you want the grid on and visible will be set to True. If visibl... | matplotlib._as_gen.matplotlib.pyplot.grid |
matplotlib.pyplot.hexbin matplotlib.pyplot.hexbin(x, y, C=None, gridsize=100, bins=None, xscale='linear', yscale='linear', extent=None, cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, edgecolors='face', reduce_C_function=<function mean>, mincnt=None, marginals=False, *, data=None, **kwargs)[s... | matplotlib._as_gen.matplotlib.pyplot.hexbin |
matplotlib.pyplot.hist matplotlib.pyplot.hist(x, bins=None, range=None, density=False, weights=None, cumulative=False, bottom=None, histtype='bar', align='mid', orientation='vertical', rwidth=None, log=False, color=None, label=None, stacked=False, *, data=None, **kwargs)[source]
Plot a histogram. Compute and draw t... | matplotlib._as_gen.matplotlib.pyplot.hist |
matplotlib.pyplot.hist2d matplotlib.pyplot.hist2d(x, y, bins=10, range=None, density=False, weights=None, cmin=None, cmax=None, *, data=None, **kwargs)[source]
Make a 2D histogram plot. Parameters
x, yarray-like, shape (n, )
Input values
binsNone or int or [int, int] or array-like or [array, array]
The bi... | matplotlib._as_gen.matplotlib.pyplot.hist2d |
matplotlib.pyplot.hlines matplotlib.pyplot.hlines(y, xmin, xmax, colors=None, linestyles='solid', label='', *, data=None, **kwargs)[source]
Plot horizontal lines at each y from xmin to xmax. Parameters
yfloat or array-like
y-indexes where to plot the lines.
xmin, xmaxfloat or array-like
Respective beginni... | matplotlib._as_gen.matplotlib.pyplot.hlines |
matplotlib.pyplot.hot matplotlib.pyplot.hot()[source]
Set the colormap to 'hot'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | matplotlib._as_gen.matplotlib.pyplot.hot |
matplotlib.pyplot.hsv matplotlib.pyplot.hsv()[source]
Set the colormap to 'hsv'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | matplotlib._as_gen.matplotlib.pyplot.hsv |
matplotlib.pyplot.imread matplotlib.pyplot.imread(fname, format=None)[source]
Read an image from a file into an array. Note This function exists for historical reasons. It is recommended to use PIL.Image.open instead for loading images. Parameters
fnamestr or file-like
The image file to read: a filename, a ... | matplotlib._as_gen.matplotlib.pyplot.imread |
matplotlib.pyplot.imsave matplotlib.pyplot.imsave(fname, arr, **kwargs)[source]
Save an array as an image file. Parameters
fnamestr or path-like or file-like
A path or a file-like object to store the image in. If format is not set, then the output format is inferred from the extension of fname, if any, and fr... | matplotlib._as_gen.matplotlib.pyplot.imsave |
matplotlib.pyplot.imshow matplotlib.pyplot.imshow(X, cmap=None, norm=None, *, aspect=None, interpolation=None, alpha=None, vmin=None, vmax=None, origin=None, extent=None, interpolation_stage=None, filternorm=True, filterrad=4.0, resample=None, url=None, data=None, **kwargs)[source]
Display data as an image, i.e., o... | matplotlib._as_gen.matplotlib.pyplot.imshow |
matplotlib.pyplot.inferno matplotlib.pyplot.inferno()[source]
Set the colormap to 'inferno'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | matplotlib._as_gen.matplotlib.pyplot.inferno |
matplotlib.pyplot.install_repl_displayhook matplotlib.pyplot.install_repl_displayhook()[source]
Install a repl display hook so that any stale figure are automatically redrawn when control is returned to the repl. This works both with IPython and with vanilla python shells. | matplotlib._as_gen.matplotlib.pyplot.install_repl_displayhook |
matplotlib.pyplot.ioff matplotlib.pyplot.ioff()[source]
Disable interactive mode. See pyplot.isinteractive for more details. See also ion
Enable interactive mode. isinteractive
Whether interactive mode is enabled. show
Show all figures (and maybe block). pause
Show all figures, and block for a time. Not... | matplotlib._as_gen.matplotlib.pyplot.ioff |
matplotlib.pyplot.ion matplotlib.pyplot.ion()[source]
Enable interactive mode. See pyplot.isinteractive for more details. See also ioff
Disable interactive mode. isinteractive
Whether interactive mode is enabled. show
Show all figures (and maybe block). pause
Show all figures, and block for a time. Note... | matplotlib._as_gen.matplotlib.pyplot.ion |
matplotlib.pyplot.isinteractive matplotlib.pyplot.isinteractive()[source]
Return whether plots are updated after every plotting command. The interactive mode is mainly useful if you build plots from the command line and want to see the effect of each command while you are building the figure. In interactive mode: ... | matplotlib._as_gen.matplotlib.pyplot.isinteractive |
matplotlib.pyplot.jet matplotlib.pyplot.jet()[source]
Set the colormap to 'jet'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | matplotlib._as_gen.matplotlib.pyplot.jet |
matplotlib.pyplot.legend matplotlib.pyplot.legend(*args, **kwargs)[source]
Place a legend on the Axes. Call signatures: legend()
legend(handles, labels)
legend(handles=handles)
legend(labels)
The call signatures correspond to the following different ways to use this method: 1. Automatic detection of elements to be... | matplotlib._as_gen.matplotlib.pyplot.legend |
matplotlib.pyplot.locator_params matplotlib.pyplot.locator_params(axis='both', tight=None, **kwargs)[source]
Control behavior of major tick locators. Because the locator is involved in autoscaling, autoscale_view is called automatically after the parameters are changed. Parameters
axis{'both', 'x', 'y'}, defaul... | matplotlib._as_gen.matplotlib.pyplot.locator_params |
matplotlib.pyplot.loglog matplotlib.pyplot.loglog(*args, **kwargs)[source]
Make a plot with log scaling on both the x and y axis. Call signatures: loglog([x], y, [fmt], data=None, **kwargs)
loglog([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs)
This is just a thin wrapper around plot which additionally changes bot... | matplotlib._as_gen.matplotlib.pyplot.loglog |
matplotlib.pyplot.magma matplotlib.pyplot.magma()[source]
Set the colormap to 'magma'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | matplotlib._as_gen.matplotlib.pyplot.magma |
matplotlib.pyplot.magnitude_spectrum matplotlib.pyplot.magnitude_spectrum(x, Fs=None, Fc=None, window=None, pad_to=None, sides=None, scale=None, *, data=None, **kwargs)[source]
Plot the magnitude spectrum. Compute the magnitude spectrum of x. Data is padded to a length of pad_to and the windowing function window is... | matplotlib._as_gen.matplotlib.pyplot.magnitude_spectrum |
matplotlib.pyplot.margins matplotlib.pyplot.margins(*margins, x=None, y=None, tight=True)[source]
Set or retrieve autoscaling margins. The padding added to each limit of the Axes is the margin times the data interval. All input parameters must be floats within the range [0, 1]. Passing both positional and keyword a... | matplotlib._as_gen.matplotlib.pyplot.margins |
matplotlib.pyplot.matshow matplotlib.pyplot.matshow(A, fignum=None, **kwargs)[source]
Display an array as a matrix in a new figure window. The origin is set at the upper left hand corner and rows (first dimension of the array) are displayed horizontally. The aspect ratio of the figure window is that of the array, u... | matplotlib._as_gen.matplotlib.pyplot.matshow |
matplotlib.pyplot.minorticks_off matplotlib.pyplot.minorticks_off()[source]
Remove minor ticks from the Axes. | matplotlib._as_gen.matplotlib.pyplot.minorticks_off |
matplotlib.pyplot.minorticks_on matplotlib.pyplot.minorticks_on()[source]
Display minor ticks on the Axes. Displaying minor ticks may reduce performance; you may turn them off using minorticks_off() if drawing speed is a problem. | matplotlib._as_gen.matplotlib.pyplot.minorticks_on |
matplotlib.pyplot.new_figure_manager matplotlib.pyplot.new_figure_manager(num, *args, **kwargs)[source]
Create a new figure manager instance. | matplotlib._as_gen.matplotlib.pyplot.new_figure_manager |
matplotlib.pyplot.nipy_spectral matplotlib.pyplot.nipy_spectral()[source]
Set the colormap to 'nipy_spectral'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | matplotlib._as_gen.matplotlib.pyplot.nipy_spectral |
matplotlib.pyplot.pause matplotlib.pyplot.pause(interval)[source]
Run the GUI event loop for interval seconds. If there is an active figure, it will be updated and displayed before the pause, and the GUI event loop (if any) will run during the pause. This can be used for crude animation. For more complex animation ... | matplotlib._as_gen.matplotlib.pyplot.pause |
matplotlib.pyplot.pcolor matplotlib.pyplot.pcolor(*args, shading=None, alpha=None, norm=None, cmap=None, vmin=None, vmax=None, data=None, **kwargs)[source]
Create a pseudocolor plot with a non-regular rectangular grid. Call signature: pcolor([X, Y,] C, **kwargs)
X and Y can be used to specify the corners of the qu... | matplotlib._as_gen.matplotlib.pyplot.pcolor |
matplotlib.pyplot.pcolormesh matplotlib.pyplot.pcolormesh(*args, alpha=None, norm=None, cmap=None, vmin=None, vmax=None, shading=None, antialiased=False, data=None, **kwargs)[source]
Create a pseudocolor plot with a non-regular rectangular grid. Call signature: pcolormesh([X, Y,] C, **kwargs)
X and Y can be used t... | matplotlib._as_gen.matplotlib.pyplot.pcolormesh |
matplotlib.pyplot.phase_spectrum matplotlib.pyplot.phase_spectrum(x, Fs=None, Fc=None, window=None, pad_to=None, sides=None, *, data=None, **kwargs)[source]
Plot the phase spectrum. Compute the phase spectrum (unwrapped angle spectrum) of x. Data is padded to a length of pad_to and the windowing function window is ... | matplotlib._as_gen.matplotlib.pyplot.phase_spectrum |
matplotlib.pyplot.pie matplotlib.pyplot.pie(x, explode=None, labels=None, colors=None, autopct=None, pctdistance=0.6, shadow=False, labeldistance=1.1, startangle=0, radius=1, counterclock=True, wedgeprops=None, textprops=None, center=(0, 0), frame=False, rotatelabels=False, *, normalize=True, data=None)[source]
Plo... | matplotlib._as_gen.matplotlib.pyplot.pie |
matplotlib.pyplot.pink matplotlib.pyplot.pink()[source]
Set the colormap to 'pink'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | matplotlib._as_gen.matplotlib.pyplot.pink |
matplotlib.pyplot.plasma matplotlib.pyplot.plasma()[source]
Set the colormap to 'plasma'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | matplotlib._as_gen.matplotlib.pyplot.plasma |
matplotlib.pyplot.plot matplotlib.pyplot.plot(*args, scalex=True, scaley=True, data=None, **kwargs)[source]
Plot y versus x as lines and/or markers. Call signatures: plot([x], y, [fmt], *, data=None, **kwargs)
plot([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs)
The coordinates of the points or line nodes are give... | matplotlib._as_gen.matplotlib.pyplot.plot |
matplotlib.pyplot.plot_date matplotlib.pyplot.plot_date(x, y, fmt='o', tz=None, xdate=True, ydate=False, *, data=None, **kwargs)[source]
Plot coercing the axis to treat floats as dates. Discouraged This method exists for historic reasons and will be deprecated in the future.
datetime-like data should directly be... | matplotlib._as_gen.matplotlib.pyplot.plot_date |
matplotlib.pyplot.plotting()[source]
Function Description
acorr Plot the autocorrelation of x.
angle_spectrum Plot the angle spectrum.
annotate Annotate the point xy with text text.
arrow Add an arrow to the Axes.
autoscale Autoscale the axis view to the data (toggle).
axes Add an axes to the current ... | matplotlib.pyplot_summary#matplotlib.pyplot.plotting |
matplotlib.pyplot.polar matplotlib.pyplot.polar(*args, **kwargs)[source]
Make a polar plot. call signature: polar(theta, r, **kwargs)
Multiple theta, r arguments are supported, with format strings, as in plot.
Examples using matplotlib.pyplot.polar
transforms.offset_copy | matplotlib._as_gen.matplotlib.pyplot.polar |
matplotlib.pyplot.prism matplotlib.pyplot.prism()[source]
Set the colormap to 'prism'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | matplotlib._as_gen.matplotlib.pyplot.prism |
matplotlib.pyplot.psd matplotlib.pyplot.psd(x, NFFT=None, Fs=None, Fc=None, detrend=None, window=None, noverlap=None, pad_to=None, sides=None, scale_by_freq=None, return_line=None, *, data=None, **kwargs)[source]
Plot the power spectral density. The power spectral density \(P_{xx}\) by Welch's average periodogram m... | matplotlib._as_gen.matplotlib.pyplot.psd |
matplotlib.pyplot.quiver matplotlib.pyplot.quiver(*args, data=None, **kwargs)[source]
Plot a 2D field of arrows. Call signature: quiver([X, Y], U, V, [C], **kw)
X, Y define the arrow locations, U, V define the arrow directions, and C optionally sets the color. Each arrow is internally represented by a filled polyg... | matplotlib._as_gen.matplotlib.pyplot.quiver |
matplotlib.pyplot.quiverkey matplotlib.pyplot.quiverkey(Q, X, Y, U, label, **kwargs)[source]
Add a key to a quiver plot. The positioning of the key depends on X, Y, coordinates, and labelpos. If labelpos is 'N' or 'S', X, Y give the position of the middle of the key arrow. If labelpos is 'E', X, Y positions the hea... | matplotlib._as_gen.matplotlib.pyplot.quiverkey |
matplotlib.pyplot.rc matplotlib.pyplot.rc(group, **kwargs)[source]
Set the current rcParams. group is the grouping for the rc, e.g., for lines.linewidth the group is lines, for axes.facecolor, the group is axes, and so on. Group may also be a list or tuple of group names, e.g., (xtick, ytick). kwargs is a dictionar... | matplotlib._as_gen.matplotlib.pyplot.rc |
matplotlib.pyplot.rc_context matplotlib.pyplot.rc_context(rc=None, fname=None)[source]
Return a context manager for temporarily changing rcParams. Parameters
rcdict
The rcParams to temporarily set.
fnamestr or path-like
A file with Matplotlib rc settings. If both fname and rc are given, settings from rc t... | matplotlib._as_gen.matplotlib.pyplot.rc_context |
matplotlib.pyplot.rcdefaults matplotlib.pyplot.rcdefaults()[source]
Restore the rcParams from Matplotlib's internal default style. Style-blacklisted rcParams (defined in matplotlib.style.core.STYLE_BLACKLIST) are not updated. See also matplotlib.rc_file_defaults
Restore the rcParams from the rc file originally l... | matplotlib._as_gen.matplotlib.pyplot.rcdefaults |
matplotlib.pyplot.rgrids matplotlib.pyplot.rgrids(radii=None, labels=None, angle=None, fmt=None, **kwargs)[source]
Get or set the radial gridlines on the current polar plot. Call signatures: lines, labels = rgrids()
lines, labels = rgrids(radii, labels=None, angle=22.5, fmt=None, **kwargs)
When called with no argu... | matplotlib._as_gen.matplotlib.pyplot.rgrids |
matplotlib.pyplot.savefig matplotlib.pyplot.savefig(*args, **kwargs)[source]
Save the current figure. Call signature: savefig(fname, *, dpi='figure', format=None, metadata=None,
bbox_inches=None, pad_inches=0.1,
facecolor='auto', edgecolor='auto',
backend=None, **kwargs
)
The availab... | matplotlib._as_gen.matplotlib.pyplot.savefig |
matplotlib.pyplot.sca matplotlib.pyplot.sca(ax)[source]
Set the current Axes to ax and the current Figure to the parent of ax. | matplotlib._as_gen.matplotlib.pyplot.sca |
matplotlib.pyplot.scatter matplotlib.pyplot.scatter(x, y, s=None, c=None, marker=None, cmap=None, norm=None, vmin=None, vmax=None, alpha=None, linewidths=None, *, edgecolors=None, plotnonfinite=False, data=None, **kwargs)[source]
A scatter plot of y vs. x with varying marker size and/or color. Parameters
x, yfl... | matplotlib._as_gen.matplotlib.pyplot.scatter |
matplotlib.pyplot.sci matplotlib.pyplot.sci(im)[source]
Set the current image. This image will be the target of colormap functions like viridis, and other functions such as clim. The current image is an attribute of the current Axes.
Examples using matplotlib.pyplot.sci
Line Collection | matplotlib._as_gen.matplotlib.pyplot.sci |
matplotlib.pyplot.semilogx matplotlib.pyplot.semilogx(*args, **kwargs)[source]
Make a plot with log scaling on the x axis. Call signatures: semilogx([x], y, [fmt], data=None, **kwargs)
semilogx([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs)
This is just a thin wrapper around plot which additionally changes the x-... | matplotlib._as_gen.matplotlib.pyplot.semilogx |
matplotlib.pyplot.semilogy matplotlib.pyplot.semilogy(*args, **kwargs)[source]
Make a plot with log scaling on the y axis. Call signatures: semilogy([x], y, [fmt], data=None, **kwargs)
semilogy([x], y, [fmt], [x2], y2, [fmt2], ..., **kwargs)
This is just a thin wrapper around plot which additionally changes the y-... | matplotlib._as_gen.matplotlib.pyplot.semilogy |
matplotlib.pyplot.set_cmap matplotlib.pyplot.set_cmap(cmap)[source]
Set the default colormap, and applies it to the current image if any. Parameters
cmapColormap or str
A colormap instance or the name of a registered colormap. See also colormaps
matplotlib.cm.register_cmap
matplotlib.cm.get_cmap | matplotlib._as_gen.matplotlib.pyplot.set_cmap |
matplotlib.pyplot.set_loglevel matplotlib.pyplot.set_loglevel(*args, **kwargs)[source]
Set Matplotlib's root logger and root logger handler level, creating the handler if it does not exist yet. Typically, one should call set_loglevel("info") or set_loglevel("debug") to get additional debugging information. Paramet... | matplotlib._as_gen.matplotlib.pyplot.set_loglevel |
matplotlib.pyplot.setp matplotlib.pyplot.setp(obj, *args, **kwargs)[source]
Set one or more properties on an Artist, or list allowed values. Parameters
objArtist or list of Artist
The artist(s) whose properties are being set or queried. When setting properties, all artists are affected; when querying the allo... | matplotlib._as_gen.matplotlib.pyplot.setp |
matplotlib.pyplot.show matplotlib.pyplot.show(*, block=None)[source]
Display all open figures. Parameters
blockbool, optional
Whether to wait for all figures to be closed before returning. If True block and run the GUI main loop until all figure windows are closed. If False ensure that all figure windows are ... | matplotlib._as_gen.matplotlib.pyplot.show |
matplotlib.pyplot.specgram matplotlib.pyplot.specgram(x, NFFT=None, Fs=None, Fc=None, detrend=None, window=None, noverlap=None, cmap=None, xextent=None, pad_to=None, sides=None, scale_by_freq=None, mode=None, scale=None, vmin=None, vmax=None, *, data=None, **kwargs)[source]
Plot a spectrogram. Compute and plot a sp... | matplotlib._as_gen.matplotlib.pyplot.specgram |
matplotlib.pyplot.spring matplotlib.pyplot.spring()[source]
Set the colormap to 'spring'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | matplotlib._as_gen.matplotlib.pyplot.spring |
matplotlib.pyplot.spy matplotlib.pyplot.spy(Z, precision=0, marker=None, markersize=None, aspect='equal', origin='upper', **kwargs)[source]
Plot the sparsity pattern of a 2D array. This visualizes the non-zero values of the array. Two plotting styles are available: image and marker. Both are available for full arra... | matplotlib._as_gen.matplotlib.pyplot.spy |
matplotlib.pyplot.stackplot matplotlib.pyplot.stackplot(x, *args, labels=(), colors=None, baseline='zero', data=None, **kwargs)[source]
Draw a stacked area plot. Parameters
x(N,) array-like
y(M, N) array-like
The data is assumed to be unstacked. Each of the following calls is legal: stackplot(x, y) ... | matplotlib._as_gen.matplotlib.pyplot.stackplot |
matplotlib.pyplot.stairs matplotlib.pyplot.stairs(values, edges=None, *, orientation='vertical', baseline=0, fill=False, data=None, **kwargs)[source]
A stepwise constant function as a line with bounding edges or a filled plot. Parameters
valuesarray-like
The step heights.
edgesarray-like
The edge position... | matplotlib._as_gen.matplotlib.pyplot.stairs |
matplotlib.pyplot.stem matplotlib.pyplot.stem(*args, linefmt=None, markerfmt=None, basefmt=None, bottom=0, label=None, use_line_collection=True, orientation='vertical', data=None)[source]
Create a stem plot. A stem plot draws lines perpendicular to a baseline at each location locs from the baseline to heads, and pl... | matplotlib._as_gen.matplotlib.pyplot.stem |
matplotlib.pyplot.step matplotlib.pyplot.step(x, y, *args, where='pre', data=None, **kwargs)[source]
Make a step plot. Call signatures: step(x, y, [fmt], *, data=None, where='pre', **kwargs)
step(x, y, [fmt], x2, y2, [fmt2], ..., *, where='pre', **kwargs)
This is just a thin wrapper around plot which changes some ... | matplotlib._as_gen.matplotlib.pyplot.step |
matplotlib.pyplot.streamplot matplotlib.pyplot.streamplot(x, y, u, v, density=1, linewidth=None, color=None, cmap=None, norm=None, arrowsize=1, arrowstyle='-|>', minlength=0.1, transform=None, zorder=None, start_points=None, maxlength=4.0, integration_direction='both', *, data=None)[source]
Draw streamlines of a ve... | matplotlib._as_gen.matplotlib.pyplot.streamplot |
matplotlib.pyplot.subplot matplotlib.pyplot.subplot(*args, **kwargs)[source]
Add an Axes to the current figure or retrieve an existing Axes. This is a wrapper of Figure.add_subplot which provides additional behavior when working with the implicit API (see the notes section). Call signatures: subplot(nrows, ncols, i... | matplotlib._as_gen.matplotlib.pyplot.subplot |
matplotlib.pyplot.subplot2grid matplotlib.pyplot.subplot2grid(shape, loc, rowspan=1, colspan=1, fig=None, **kwargs)[source]
Create a subplot at a specific location inside a regular grid. Parameters
shape(int, int)
Number of rows and of columns of the grid in which to place axis.
loc(int, int)
Row number a... | matplotlib._as_gen.matplotlib.pyplot.subplot2grid |
matplotlib.pyplot.subplot_mosaic matplotlib.pyplot.subplot_mosaic(mosaic, *, sharex=False, sharey=False, subplot_kw=None, gridspec_kw=None, empty_sentinel='.', **fig_kw)[source]
Build a layout of Axes based on ASCII art or nested lists. This is a helper function to build complex GridSpec layouts visually. Note Thi... | matplotlib._as_gen.matplotlib.pyplot.subplot_mosaic |
matplotlib.pyplot.subplot_tool matplotlib.pyplot.subplot_tool(targetfig=None)[source]
Launch a subplot tool window for a figure. Returns
matplotlib.widgets.SubplotTool | matplotlib._as_gen.matplotlib.pyplot.subplot_tool |
matplotlib.pyplot.subplots matplotlib.pyplot.subplots(nrows=1, ncols=1, *, sharex=False, sharey=False, squeeze=True, subplot_kw=None, gridspec_kw=None, **fig_kw)[source]
Create a figure and a set of subplots. This utility wrapper makes it convenient to create common layouts of subplots, including the enclosing figu... | matplotlib._as_gen.matplotlib.pyplot.subplots |
matplotlib.pyplot.subplots_adjust matplotlib.pyplot.subplots_adjust(left=None, bottom=None, right=None, top=None, wspace=None, hspace=None)[source]
Adjust the subplot layout parameters. Unset parameters are left unmodified; initial values are given by rcParams["figure.subplot.[name]"]. Parameters
leftfloat, opt... | matplotlib._as_gen.matplotlib.pyplot.subplots_adjust |
matplotlib.pyplot.summer matplotlib.pyplot.summer()[source]
Set the colormap to 'summer'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | matplotlib._as_gen.matplotlib.pyplot.summer |
matplotlib.pyplot.suptitle matplotlib.pyplot.suptitle(t, **kwargs)[source]
Add a centered suptitle to the figure. Parameters
tstr
The suptitle text.
xfloat, default: 0.5
The x location of the text in figure coordinates.
yfloat, default: 0.98
The y location of the text in figure coordinates.
horizont... | matplotlib._as_gen.matplotlib.pyplot.suptitle |
matplotlib.pyplot.switch_backend matplotlib.pyplot.switch_backend(newbackend)[source]
Close all open figures and set the Matplotlib backend. The argument is case-insensitive. Switching to an interactive backend is possible only if no event loop for another interactive backend has started. Switching to and from non-... | matplotlib._as_gen.matplotlib.pyplot.switch_backend |
matplotlib.pyplot.table matplotlib.pyplot.table(cellText=None, cellColours=None, cellLoc='right', colWidths=None, rowLabels=None, rowColours=None, rowLoc='left', colLabels=None, colColours=None, colLoc='center', loc='bottom', bbox=None, edges='closed', **kwargs)[source]
Add a table to an Axes. At least one of cellT... | matplotlib._as_gen.matplotlib.pyplot.table |
matplotlib.pyplot.text matplotlib.pyplot.text(x, y, s, fontdict=None, **kwargs)[source]
Add text to the Axes. Add the text s to the Axes at location x, y in data coordinates. Parameters
x, yfloat
The position to place the text. By default, this is in data coordinates. The coordinate system can be changed usin... | matplotlib._as_gen.matplotlib.pyplot.text |
matplotlib.pyplot.thetagrids matplotlib.pyplot.thetagrids(angles=None, labels=None, fmt=None, **kwargs)[source]
Get or set the theta gridlines on the current polar plot. Call signatures: lines, labels = thetagrids()
lines, labels = thetagrids(angles, labels=None, fmt=None, **kwargs)
When called with no arguments, ... | matplotlib._as_gen.matplotlib.pyplot.thetagrids |
matplotlib.pyplot.tick_params matplotlib.pyplot.tick_params(axis='both', **kwargs)[source]
Change the appearance of ticks, tick labels, and gridlines. Tick properties that are not explicitly set using the keyword arguments remain unchanged unless reset is True. Parameters
axis{'x', 'y', 'both'}, default: 'both'... | matplotlib._as_gen.matplotlib.pyplot.tick_params |
matplotlib.pyplot.ticklabel_format matplotlib.pyplot.ticklabel_format(*, axis='both', style='', scilimits=None, useOffset=None, useLocale=None, useMathText=None)[source]
Configure the ScalarFormatter used by default for linear axes. If a parameter is not set, the corresponding property of the formatter is left unch... | matplotlib._as_gen.matplotlib.pyplot.ticklabel_format |
matplotlib.pyplot.tight_layout matplotlib.pyplot.tight_layout(*, pad=1.08, h_pad=None, w_pad=None, rect=None)[source]
Adjust the padding between and around subplots. To exclude an artist on the Axes from the bounding box calculation that determines the subplot parameters (i.e. legend, or annotation), set a.set_in_l... | matplotlib._as_gen.matplotlib.pyplot.tight_layout |
matplotlib.pyplot.title matplotlib.pyplot.title(label, fontdict=None, loc=None, pad=None, *, y=None, **kwargs)[source]
Set a title for the Axes. Set one of the three available Axes titles. The available titles are positioned above the Axes in the center, flush with the left edge, and flush with the right edge. Par... | matplotlib._as_gen.matplotlib.pyplot.title |
matplotlib.pyplot.tricontour matplotlib.pyplot.tricontour(*args, **kwargs)[source]
Draw contour lines on an unstructured triangular grid. The triangulation can be specified in one of two ways; either tricontour(triangulation, ...)
where triangulation is a Triangulation object, or tricontour(x, y, ...)
tricontour(x... | matplotlib._as_gen.matplotlib.pyplot.tricontour |
matplotlib.pyplot.tricontourf matplotlib.pyplot.tricontourf(*args, **kwargs)[source]
Draw contour regions on an unstructured triangular grid. The triangulation can be specified in one of two ways; either tricontourf(triangulation, ...)
where triangulation is a Triangulation object, or tricontourf(x, y, ...)
tricon... | matplotlib._as_gen.matplotlib.pyplot.tricontourf |
matplotlib.pyplot.tripcolor matplotlib.pyplot.tripcolor(*args, alpha=1.0, norm=None, cmap=None, vmin=None, vmax=None, shading='flat', facecolors=None, **kwargs)[source]
Create a pseudocolor plot of an unstructured triangular grid. The triangulation can be specified in one of two ways; either: tripcolor(triangulatio... | matplotlib._as_gen.matplotlib.pyplot.tripcolor |
matplotlib.pyplot.triplot matplotlib.pyplot.triplot(*args, **kwargs)[source]
Draw a unstructured triangular grid as lines and/or markers. The triangulation to plot can be specified in one of two ways; either: triplot(triangulation, ...)
where triangulation is a Triangulation object, or triplot(x, y, ...)
triplot(x... | matplotlib._as_gen.matplotlib.pyplot.triplot |
matplotlib.pyplot.twinx matplotlib.pyplot.twinx(ax=None)[source]
Make and return a second axes that shares the x-axis. The new axes will overlay ax (or the current axes if ax is None), and its ticks will be on the right. Examples Plots with different scales | matplotlib._as_gen.matplotlib.pyplot.twinx |
matplotlib.pyplot.twiny matplotlib.pyplot.twiny(ax=None)[source]
Make and return a second axes that shares the y-axis. The new axes will overlay ax (or the current axes if ax is None), and its ticks will be on the top. Examples Plots with different scales | matplotlib._as_gen.matplotlib.pyplot.twiny |
matplotlib.pyplot.uninstall_repl_displayhook matplotlib.pyplot.uninstall_repl_displayhook()[source]
Uninstall the Matplotlib display hook. Warning Need IPython >= 2 for this to work. For IPython < 2 will raise a NotImplementedError Warning If you are using vanilla python and have installed another display hook, ... | matplotlib._as_gen.matplotlib.pyplot.uninstall_repl_displayhook |
matplotlib.pyplot.violinplot matplotlib.pyplot.violinplot(dataset, positions=None, vert=True, widths=0.5, showmeans=False, showextrema=True, showmedians=False, quantiles=None, points=100, bw_method=None, *, data=None)[source]
Make a violin plot. Make a violin plot for each column of dataset or each vector in sequen... | matplotlib._as_gen.matplotlib.pyplot.violinplot |
matplotlib.pyplot.viridis matplotlib.pyplot.viridis()[source]
Set the colormap to 'viridis'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | matplotlib._as_gen.matplotlib.pyplot.viridis |
matplotlib.pyplot.vlines matplotlib.pyplot.vlines(x, ymin, ymax, colors=None, linestyles='solid', label='', *, data=None, **kwargs)[source]
Plot vertical lines at each x from ymin to ymax. Parameters
xfloat or array-like
x-indexes where to plot the lines.
ymin, ymaxfloat or array-like
Respective beginning... | matplotlib._as_gen.matplotlib.pyplot.vlines |
matplotlib.pyplot.waitforbuttonpress matplotlib.pyplot.waitforbuttonpress(timeout=- 1)[source]
Blocking call to interact with the figure. Wait for user input and return True if a key was pressed, False if a mouse button was pressed and None if no input was given within timeout seconds. Negative values deactivate ti... | matplotlib._as_gen.matplotlib.pyplot.waitforbuttonpress |
matplotlib.pyplot.winter matplotlib.pyplot.winter()[source]
Set the colormap to 'winter'. This changes the default colormap as well as the colormap of the current image if there is one. See help(colormaps) for more information. | matplotlib._as_gen.matplotlib.pyplot.winter |
matplotlib.pyplot.xcorr matplotlib.pyplot.xcorr(x, y, normed=True, detrend=<function detrend_none>, usevlines=True, maxlags=10, *, data=None, **kwargs)[source]
Plot the cross correlation between x and y. The correlation with lag k is defined as \(\sum_n x[n+k] \cdot y^*[n]\), where \(y^*\) is the complex conjugate ... | matplotlib._as_gen.matplotlib.pyplot.xcorr |
matplotlib.pyplot.xkcd matplotlib.pyplot.xkcd(scale=1, length=100, randomness=2)[source]
Turn on xkcd sketch-style drawing mode. This will only have effect on things drawn after this function is called. For best results, the "Humor Sans" font should be installed: it is not included with Matplotlib. Parameters
s... | matplotlib._as_gen.matplotlib.pyplot.xkcd |
matplotlib.pyplot.xlabel matplotlib.pyplot.xlabel(xlabel, fontdict=None, labelpad=None, *, loc=None, **kwargs)[source]
Set the label for the x-axis. Parameters
xlabelstr
The label text.
labelpadfloat, default: rcParams["axes.labelpad"] (default: 4.0)
Spacing in points from the Axes bounding box including ... | matplotlib._as_gen.matplotlib.pyplot.xlabel |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.