doc_content
stringlengths
1
386k
doc_id
stringlengths
5
188
matplotlib.axes.Axes.hexbin Axes.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)[source] M...
matplotlib._as_gen.matplotlib.axes.axes.hexbin
matplotlib.axes.Axes.hist Axes.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 the histogr...
matplotlib._as_gen.matplotlib.axes.axes.hist
matplotlib.axes.Axes.hist2d Axes.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 bin specific...
matplotlib._as_gen.matplotlib.axes.axes.hist2d
matplotlib.axes.Axes.hlines Axes.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 beginning and end...
matplotlib._as_gen.matplotlib.axes.axes.hlines
matplotlib.axes.Axes.imshow Axes.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., on a 2D reg...
matplotlib._as_gen.matplotlib.axes.axes.imshow
matplotlib.axes.Axes.in_axes Axes.in_axes(mouseevent)[source] Return whether the given event (in display coords) is in the Axes.
matplotlib._as_gen.matplotlib.axes.axes.in_axes
matplotlib.axes.Axes.indicate_inset Axes.indicate_inset(bounds, inset_ax=None, *, transform=None, facecolor='none', edgecolor='0.5', alpha=0.5, zorder=4.99, **kwargs)[source] Add an inset indicator to the Axes. This is a rectangle on the plot at the position indicated by bounds that optionally has lines that connec...
matplotlib._as_gen.matplotlib.axes.axes.indicate_inset
matplotlib.axes.Axes.indicate_inset_zoom Axes.indicate_inset_zoom(inset_ax, **kwargs)[source] Add an inset indicator rectangle to the Axes based on the axis limits for an inset_ax and draw connectors between inset_ax and the rectangle. Parameters inset_axAxes Inset Axes to draw connecting lines to. Two lines ...
matplotlib._as_gen.matplotlib.axes.axes.indicate_inset_zoom
matplotlib.axes.Axes.inset_axes Axes.inset_axes(bounds, *, transform=None, zorder=5, **kwargs)[source] Add a child inset Axes to this existing Axes. Parameters bounds[x0, y0, width, height] Lower-left corner of inset Axes, and its width and height. transformTransform Defaults to ax.transAxes, i.e. the uni...
matplotlib._as_gen.matplotlib.axes.axes.inset_axes
matplotlib.axes.Axes.invert_xaxis Axes.invert_xaxis()[source] Invert the x-axis. See also xaxis_inverted get_xlim, set_xlim get_xbound, set_xbound
matplotlib._as_gen.matplotlib.axes.axes.invert_xaxis
matplotlib.axes.Axes.invert_yaxis Axes.invert_yaxis()[source] Invert the y-axis. See also yaxis_inverted get_ylim, set_ylim get_ybound, set_ybound Examples using matplotlib.axes.Axes.invert_yaxis Bar Label Demo Horizontal bar chart Marker reference
matplotlib._as_gen.matplotlib.axes.axes.invert_yaxis
matplotlib.axes.Axes.legend Axes.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 shown in ...
matplotlib._as_gen.matplotlib.axes.axes.legend
matplotlib.axes.Axes.locator_params Axes.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'}, default: 'both' ...
matplotlib._as_gen.matplotlib.axes.axes.locator_params
matplotlib.axes.Axes.loglog Axes.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 both the x-ax...
matplotlib._as_gen.matplotlib.axes.axes.loglog
matplotlib.axes.Axes.magnitude_spectrum Axes.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 applied t...
matplotlib._as_gen.matplotlib.axes.axes.magnitude_spectrum
matplotlib.axes.Axes.margins Axes.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 arguments i...
matplotlib._as_gen.matplotlib.axes.axes.margins
matplotlib.axes.Axes.matshow Axes.matshow(Z, **kwargs)[source] Plot the values of a 2D matrix or array as color-coded image. The matrix will be shown the way it would be printed, with the first row at the top. Row and column numbering is zero-based. Parameters Z(M, N) array-like The matrix to be displayed. ...
matplotlib._as_gen.matplotlib.axes.axes.matshow
matplotlib.axes.Axes.minorticks_off Axes.minorticks_off()[source] Remove minor ticks from the Axes.
matplotlib._as_gen.matplotlib.axes.axes.minorticks_off
matplotlib.axes.Axes.minorticks_on Axes.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. Examples using matplotlib.axes.Axes.minorticks_on MRI With EEG
matplotlib._as_gen.matplotlib.axes.axes.minorticks_on
matplotlib.axes.Axes.mouseover propertyAxes.mouseover If this property is set to True, the artist will be queried for custom context information when the mouse cursor moves over it. See also get_cursor_data(), ToolCursorPosition and NavigationToolbar2.
matplotlib._as_gen.matplotlib.axes.axes.mouseover
matplotlib.axes.Axes.name Axes.name='rectilinear'
matplotlib._as_gen.matplotlib.axes.axes.name
matplotlib.axes.Axes.pchanged Axes.pchanged()[source] Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback remove_callback
matplotlib._as_gen.matplotlib.axes.axes.pchanged
matplotlib.axes.Axes.pcolor Axes.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 quadrilatera...
matplotlib._as_gen.matplotlib.axes.axes.pcolor
matplotlib.axes.Axes.pcolorfast Axes.pcolorfast(*args, 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: ax.pcolorfast([X, Y], C, /, **kwargs) This method is similar to pcolor and pcolormesh. It's desi...
matplotlib._as_gen.matplotlib.axes.axes.pcolorfast
matplotlib.axes.Axes.pcolormesh Axes.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 to specify ...
matplotlib._as_gen.matplotlib.axes.axes.pcolormesh
matplotlib.axes.Axes.phase_spectrum Axes.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 applied to...
matplotlib._as_gen.matplotlib.axes.axes.phase_spectrum
matplotlib.axes.Axes.pie Axes.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] Plot a pie ch...
matplotlib._as_gen.matplotlib.axes.axes.pie
matplotlib.axes.Axes.plot Axes.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 given by x, y....
matplotlib._as_gen.matplotlib.axes.axes.plot
matplotlib.axes.Axes.plot_date Axes.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 plotted u...
matplotlib._as_gen.matplotlib.axes.axes.plot_date
matplotlib.axes.Axes.psd Axes.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 method. The...
matplotlib._as_gen.matplotlib.axes.axes.psd
matplotlib.axes.Axes.quiver Axes.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 polygon with a ...
matplotlib._as_gen.matplotlib.axes.axes.quiver
matplotlib.axes.Axes.quiverkey Axes.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 head, and if ...
matplotlib._as_gen.matplotlib.axes.axes.quiverkey
matplotlib.axes.Axes.redraw_in_frame Axes.redraw_in_frame()[source] Efficiently redraw Axes data, but not axis ticks, labels, etc. This method can only be used after an initial draw which caches the renderer.
matplotlib._as_gen.matplotlib.axes.axes.redraw_in_frame
matplotlib.axes.Axes.relim Axes.relim(visible_only=False)[source] Recompute the data limits based on current artists. At present, Collection instances are not supported. Parameters visible_onlybool, default: False Whether to exclude invisible artists. Examples using matplotlib.axes.Axes.relim Pack...
matplotlib._as_gen.matplotlib.axes.axes.relim
matplotlib.axes.Axes.remove_callback Axes.remove_callback(oid)[source] Remove a callback based on its observer id. See also add_callback
matplotlib._as_gen.matplotlib.axes.axes.remove_callback
matplotlib.axes.Axes.reset_position Axes.reset_position()[source] Reset the active position to the original position. This resets the a possible position change due to aspect constraints. For an explanation of the positions see set_position.
matplotlib._as_gen.matplotlib.axes.axes.reset_position
matplotlib.axes.Axes.scatter Axes.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, yfloat or arr...
matplotlib._as_gen.matplotlib.axes.axes.scatter
matplotlib.axes.Axes.secondary_xaxis Axes.secondary_xaxis(location, *, functions=None, **kwargs)[source] Add a second x-axis to this Axes. For example if we want to have a second scale for the data plotted on the xaxis. Parameters location{'top', 'bottom', 'left', 'right'} or float The position to put the sec...
matplotlib._as_gen.matplotlib.axes.axes.secondary_xaxis
matplotlib.axes.Axes.secondary_yaxis Axes.secondary_yaxis(location, *, functions=None, **kwargs)[source] Add a second y-axis to this Axes. For example if we want to have a second scale for the data plotted on the yaxis. Parameters location{'top', 'bottom', 'left', 'right'} or float The position to put the sec...
matplotlib._as_gen.matplotlib.axes.axes.secondary_yaxis
matplotlib.axes.Axes.semilogx Axes.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-axis to lo...
matplotlib._as_gen.matplotlib.axes.axes.semilogx
matplotlib.axes.Axes.semilogy Axes.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-axis to lo...
matplotlib._as_gen.matplotlib.axes.axes.semilogy
matplotlib.axes.Axes.set Axes.set(*, adjustable=<UNSET>, agg_filter=<UNSET>, alpha=<UNSET>, anchor=<UNSET>, animated=<UNSET>, aspect=<UNSET>, autoscale_on=<UNSET>, autoscalex_on=<UNSET>, autoscaley_on=<UNSET>, axes_locator=<UNSET>, axisbelow=<UNSET>, box_aspect=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<U...
matplotlib._as_gen.matplotlib.axes.axes.set
matplotlib.axes.Axes.set_adjustable Axes.set_adjustable(adjustable, share=False)[source] Set how the Axes adjusts to achieve the required aspect ratio. Parameters adjustable{'box', 'datalim'} If 'box', change the physical dimensions of the Axes. If 'datalim', change the x or y data limits. sharebool, defaul...
matplotlib._as_gen.matplotlib.axes.axes.set_adjustable
matplotlib.axes.Axes.set_anchor Axes.set_anchor(anchor, share=False)[source] Define the anchor location. The actual drawing area (active position) of the Axes may be smaller than the Bbox (original position) when a fixed aspect is required. The anchor defines where the drawing area will be located within the availa...
matplotlib._as_gen.matplotlib.axes.axes.set_anchor
matplotlib.axes.Axes.set_aspect Axes.set_aspect(aspect, adjustable=None, anchor=None, share=False)[source] Set the aspect ratio of the axes scaling, i.e. y/x-scale. Parameters aspect{'auto', 'equal'} or float Possible values: 'auto': fill the position rectangle with data. 'equal': same as aspect=1, i.e. same...
matplotlib._as_gen.matplotlib.axes.axes.set_aspect
matplotlib.axes.Axes.set_autoscale_on Axes.set_autoscale_on(b)[source] Set whether autoscaling is applied to each axis on the next draw or call to Axes.autoscale_view. Parameters bbool Examples using matplotlib.axes.Axes.set_autoscale_on Resampling Data
matplotlib._as_gen.matplotlib.axes.axes.set_autoscale_on
matplotlib.axes.Axes.set_autoscalex_on Axes.set_autoscalex_on(b)[source] Set whether the x-axis is autoscaled on the next draw or call to Axes.autoscale_view. Parameters bbool
matplotlib._as_gen.matplotlib.axes.axes.set_autoscalex_on
matplotlib.axes.Axes.set_autoscaley_on Axes.set_autoscaley_on(b)[source] Set whether the y-axis is autoscaled on the next draw or call to Axes.autoscale_view. Parameters bbool
matplotlib._as_gen.matplotlib.axes.axes.set_autoscaley_on
matplotlib.axes.Axes.set_axes_locator Axes.set_axes_locator(locator)[source] Set the Axes locator. Parameters locatorCallable[[Axes, Renderer], Bbox] Examples using matplotlib.axes.Axes.set_axes_locator HBoxDivider demo
matplotlib._as_gen.matplotlib.axes.axes.set_axes_locator
matplotlib.axes.Axes.set_axis_off Axes.set_axis_off()[source] Turn the x- and y-axis off. This affects the axis lines, ticks, ticklabels, grid and axis labels. Examples using matplotlib.axes.Axes.set_axis_off Marker reference Barcode Blend transparency with color in 2D images Nested pie...
matplotlib._as_gen.matplotlib.axes.axes.set_axis_off
matplotlib.axes.Axes.set_axis_on Axes.set_axis_on()[source] Turn the x- and y-axis on. This affects the axis lines, ticks, ticklabels, grid and axis labels.
matplotlib._as_gen.matplotlib.axes.axes.set_axis_on
matplotlib.axes.Axes.set_axisbelow Axes.set_axisbelow(b)[source] Set whether axis ticks and gridlines are above or below most artists. This controls the zorder of the ticks and gridlines. For more information on the zorder see Zorder Demo. Parameters bbool or 'line' Possible values: True (zorder = 0.5): Tic...
matplotlib._as_gen.matplotlib.axes.axes.set_axisbelow
matplotlib.axes.Axes.set_box_aspect Axes.set_box_aspect(aspect=None)[source] Set the Axes box aspect, i.e. the ratio of height to width. This defines the aspect of the Axes in figure space and is not to be confused with the data aspect (see set_aspect). Parameters aspectfloat or None Changes the physical dime...
matplotlib._as_gen.matplotlib.axes.axes.set_box_aspect
matplotlib.axes.Axes.set_facecolor Axes.set_facecolor(color)[source] Set the facecolor of the Axes. Parameters colorcolor Examples using matplotlib.axes.Axes.set_facecolor Color Demo
matplotlib._as_gen.matplotlib.axes.axes.set_facecolor
matplotlib.axes.Axes.set_frame_on Axes.set_frame_on(b)[source] Set whether the Axes rectangle patch is drawn. Parameters bbool
matplotlib._as_gen.matplotlib.axes.axes.set_frame_on
matplotlib.axes.Axes.set_navigate Axes.set_navigate(b)[source] Set whether the Axes responds to navigation toolbar commands. Parameters bbool
matplotlib._as_gen.matplotlib.axes.axes.set_navigate
matplotlib.axes.Axes.set_navigate_mode Axes.set_navigate_mode(b)[source] Set the navigation toolbar button status. Warning this is not a user-API function.
matplotlib._as_gen.matplotlib.axes.axes.set_navigate_mode
matplotlib.axes.Axes.set_position Axes.set_position(pos, which='both')[source] Set the Axes position. Axes have two position attributes. The 'original' position is the position allocated for the Axes. The 'active' position is the position the Axes is actually drawn at. These positions are usually the same unless a ...
matplotlib._as_gen.matplotlib.axes.axes.set_position
matplotlib.axes.Axes.set_prop_cycle Axes.set_prop_cycle(*args, **kwargs)[source] Set the property cycle of the Axes. The property cycle controls the style properties such as color, marker and linestyle of future plot commands. The style properties of data already added to the Axes are not modified. Call signatures:...
matplotlib._as_gen.matplotlib.axes.axes.set_prop_cycle
matplotlib.axes.Axes.set_rasterization_zorder Axes.set_rasterization_zorder(z)[source] Set the zorder threshold for rasterization for vector graphics output. All artists with a zorder below the given value will be rasterized if they support rasterization. This setting is ignored for pixel-based output. See also Ras...
matplotlib._as_gen.matplotlib.axes.axes.set_rasterization_zorder
matplotlib.axes.Axes.set_title Axes.set_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. Param...
matplotlib._as_gen.matplotlib.axes.axes.set_title
matplotlib.axes.Axes.set_xbound Axes.set_xbound(lower=None, upper=None)[source] Set the lower and upper numerical bounds of the x-axis. This method will honor axis inversion regardless of parameter order. It will not change the autoscaling setting (get_autoscalex_on()). Parameters lower, upperfloat or None Th...
matplotlib._as_gen.matplotlib.axes.axes.set_xbound
matplotlib.axes.Axes.set_xlabel Axes.set_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 ti...
matplotlib._as_gen.matplotlib.axes.axes.set_xlabel
matplotlib.axes.Axes.set_xlim Axes.set_xlim(left=None, right=None, emit=True, auto=False, *, xmin=None, xmax=None)[source] Set the x-axis view limits. Parameters leftfloat, optional The left xlim in data coordinates. Passing None leaves the limit unchanged. The left and right xlims may also be passed as the t...
matplotlib._as_gen.matplotlib.axes.axes.set_xlim
matplotlib.axes.Axes.set_xmargin Axes.set_xmargin(m)[source] Set padding of X data limits prior to autoscaling. m times the data interval will be added to each end of that interval before it is used in autoscaling. For example, if your data is in the range [0, 2], a factor of m = 0.1 will result in a range [-0.2, 2...
matplotlib._as_gen.matplotlib.axes.axes.set_xmargin
matplotlib.axes.Axes.set_xscale Axes.set_xscale(value, **kwargs)[source] Set the x-axis scale. Parameters value{"linear", "log", "symlog", "logit", ...} or ScaleBase The axis scale type to apply. **kwargs Different keyword arguments are accepted, depending on the scale. See the respective class keyword argu...
matplotlib._as_gen.matplotlib.axes.axes.set_xscale
matplotlib.axes.Axes.set_xticklabels Axes.set_xticklabels(labels, *, fontdict=None, minor=False, **kwargs)[source] Set the xaxis' labels with list of string labels. Warning This method should only be used after fixing the tick positions using Axes.set_xticks. Otherwise, the labels may end up in unexpected position...
matplotlib._as_gen.matplotlib.axes.axes.set_xticklabels
matplotlib.axes.Axes.set_xticks Axes.set_xticks(ticks, labels=None, *, minor=False, **kwargs)[source] Set the xaxis' tick locations and optionally labels. If necessary, the view limits of the Axis are expanded so that all given ticks are visible. Parameters tickslist of floats List of tick locations. labels...
matplotlib._as_gen.matplotlib.axes.axes.set_xticks
matplotlib.axes.Axes.set_ybound Axes.set_ybound(lower=None, upper=None)[source] Set the lower and upper numerical bounds of the y-axis. This method will honor axis inversion regardless of parameter order. It will not change the autoscaling setting (get_autoscaley_on()). Parameters lower, upperfloat or None Th...
matplotlib._as_gen.matplotlib.axes.axes.set_ybound
matplotlib.axes.Axes.set_ylabel Axes.set_ylabel(ylabel, fontdict=None, labelpad=None, *, loc=None, **kwargs)[source] Set the label for the y-axis. Parameters ylabelstr The label text. labelpadfloat, default: rcParams["axes.labelpad"] (default: 4.0) Spacing in points from the Axes bounding box including ti...
matplotlib._as_gen.matplotlib.axes.axes.set_ylabel
matplotlib.axes.Axes.set_ylim Axes.set_ylim(bottom=None, top=None, emit=True, auto=False, *, ymin=None, ymax=None)[source] Set the y-axis view limits. Parameters bottomfloat, optional The bottom ylim in data coordinates. Passing None leaves the limit unchanged. The bottom and top ylims may also be passed as t...
matplotlib._as_gen.matplotlib.axes.axes.set_ylim
matplotlib.axes.Axes.set_ymargin Axes.set_ymargin(m)[source] Set padding of Y data limits prior to autoscaling. m times the data interval will be added to each end of that interval before it is used in autoscaling. For example, if your data is in the range [0, 2], a factor of m = 0.1 will result in a range [-0.2, 2...
matplotlib._as_gen.matplotlib.axes.axes.set_ymargin
matplotlib.axes.Axes.set_yscale Axes.set_yscale(value, **kwargs)[source] Set the y-axis scale. Parameters value{"linear", "log", "symlog", "logit", ...} or ScaleBase The axis scale type to apply. **kwargs Different keyword arguments are accepted, depending on the scale. See the respective class keyword argu...
matplotlib._as_gen.matplotlib.axes.axes.set_yscale
matplotlib.axes.Axes.set_yticklabels Axes.set_yticklabels(labels, *, fontdict=None, minor=False, **kwargs)[source] Set the yaxis' labels with list of string labels. Warning This method should only be used after fixing the tick positions using Axes.set_yticks. Otherwise, the labels may end up in unexpected position...
matplotlib._as_gen.matplotlib.axes.axes.set_yticklabels
matplotlib.axes.Axes.set_yticks Axes.set_yticks(ticks, labels=None, *, minor=False, **kwargs)[source] Set the yaxis' tick locations and optionally labels. If necessary, the view limits of the Axis are expanded so that all given ticks are visible. Parameters tickslist of floats List of tick locations. labels...
matplotlib._as_gen.matplotlib.axes.axes.set_yticks
matplotlib.axes.Axes.sharex Axes.sharex(other)[source] Share the x-axis with other. This is equivalent to passing sharex=other when constructing the axes, and cannot be used if the x-axis is already being shared with another Axes.
matplotlib._as_gen.matplotlib.axes.axes.sharex
matplotlib.axes.Axes.sharey Axes.sharey(other)[source] Share the y-axis with other. This is equivalent to passing sharey=other when constructing the axes, and cannot be used if the y-axis is already being shared with another Axes.
matplotlib._as_gen.matplotlib.axes.axes.sharey
matplotlib.axes.Axes.specgram Axes.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 spectrogram ...
matplotlib._as_gen.matplotlib.axes.axes.specgram
matplotlib.axes.Axes.spy Axes.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 arrays, but on...
matplotlib._as_gen.matplotlib.axes.axes.spy
matplotlib.axes.Axes.stackplot Axes.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) # where ...
matplotlib._as_gen.matplotlib.axes.axes.stackplot
matplotlib.axes.Axes.stairs Axes.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 positions, with le...
matplotlib._as_gen.matplotlib.axes.axes.stairs
matplotlib.axes.Axes.stale propertyAxes.stale Whether the artist is 'stale' and needs to be re-drawn for the output to match the internal state of the artist.
matplotlib._as_gen.matplotlib.axes.axes.stale
matplotlib.axes.Axes.start_pan Axes.start_pan(x, y, button)[source] Called when a pan operation has started. Parameters x, yfloat The mouse coordinates in display coords. buttonMouseButton The pressed mouse button. Notes This is intended to be overridden by new projection types.
matplotlib._as_gen.matplotlib.axes.axes.start_pan
matplotlib.axes.Axes.stem Axes.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 places a mar...
matplotlib._as_gen.matplotlib.axes.axes.stem
matplotlib.axes.Axes.step Axes.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 formatting...
matplotlib._as_gen.matplotlib.axes.axes.step
matplotlib.axes.Axes.streamplot Axes.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 vector flow....
matplotlib._as_gen.matplotlib.axes.axes.streamplot
matplotlib.axes.Axes.table Axes.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 cellText or cel...
matplotlib._as_gen.matplotlib.axes.axes.table
matplotlib.axes.Axes.text Axes.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 using the tran...
matplotlib._as_gen.matplotlib.axes.axes.text
matplotlib.axes.Axes.tick_params Axes.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' The axi...
matplotlib._as_gen.matplotlib.axes.axes.tick_params
matplotlib.axes.Axes.ticklabel_format Axes.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 unchanged. Pa...
matplotlib._as_gen.matplotlib.axes.axes.ticklabel_format
matplotlib.axes.Axes.tricontour Axes.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, y, trian...
matplotlib._as_gen.matplotlib.axes.axes.tricontour
matplotlib.axes.Axes.tricontourf Axes.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, ...) tricontourf(x, y...
matplotlib._as_gen.matplotlib.axes.axes.tricontourf
matplotlib.axes.Axes.tripcolor Axes.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(triangulation, ...) w...
matplotlib._as_gen.matplotlib.axes.axes.tripcolor
matplotlib.axes.Axes.triplot Axes.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, y, trian...
matplotlib._as_gen.matplotlib.axes.axes.triplot
matplotlib.axes.Axes.twinx Axes.twinx()[source] Create a twin Axes sharing the xaxis. Create a new Axes with an invisible x-axis and an independent y-axis positioned opposite to the original one (i.e. at right). The x-axis autoscale setting will be inherited from the original Axes. To ensure that the tick marks of ...
matplotlib._as_gen.matplotlib.axes.axes.twinx
matplotlib.axes.Axes.twiny Axes.twiny()[source] Create a twin Axes sharing the yaxis. Create a new Axes with an invisible y-axis and an independent x-axis positioned opposite to the original one (i.e. at top). The y-axis autoscale setting will be inherited from the original Axes. To ensure that the tick marks of bo...
matplotlib._as_gen.matplotlib.axes.axes.twiny
matplotlib.axes.Axes.update_datalim Axes.update_datalim(xys, updatex=True, updatey=True)[source] Extend the dataLim Bbox to include the given points. If no data is set currently, the Bbox will ignore its limits and set the bound to be the bounds of the xydata (xys). Otherwise, it will compute the bounds of the unio...
matplotlib._as_gen.matplotlib.axes.axes.update_datalim
matplotlib.axes.Axes.use_sticky_edges propertyAxes.use_sticky_edges When autoscaling, whether to obey all Artist.sticky_edges. Default is True. Setting this to False ensures that the specified margins will be applied, even if the plot includes an image, for example, which would otherwise force a view limit to coinc...
matplotlib._as_gen.matplotlib.axes.axes.use_sticky_edges
matplotlib.axes.Axes.violin Axes.violin(vpstats, positions=None, vert=True, widths=0.5, showmeans=False, showextrema=True, showmedians=False)[source] Drawing function for violin plots. Draw a violin plot for each column of vpstats. Each filled area extends to represent the entire data range, with optional lines at ...
matplotlib._as_gen.matplotlib.axes.axes.violin
matplotlib.axes.Axes.violinplot Axes.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 sequence dataset...
matplotlib._as_gen.matplotlib.axes.axes.violinplot