smpl.plot¶
Simplified plotting.
Functions
|
Plot the autocorrelation of x. |
|
Plot the angle spectrum. |
|
Annotate the point xy with text text. |
|
Add an arrow to the Axes. |
|
Automatically loop over functions and fit the best one. |
|
Autoscale the axis view to the data (toggle). |
|
Set the colormap to 'autumn'. |
|
Add an Axes to the current figure and make it the current Axes. |
|
Add a horizontal line across the Axes. |
|
Add a horizontal span (rectangle) across the Axes. |
|
Convenience method to get or set some axis properties. |
|
Add an infinitely long straight line. |
|
Add a vertical line across the Axes. |
|
Add a vertical span (rectangle) across the Axes. |
|
Make a bar plot. |
|
Label a bar plot. |
|
Plot a 2D field of barbs. |
|
Make a horizontal bar plot. |
|
Set the colormap to 'bone'. |
|
Turn the axes box on or off on the current axes. |
|
Draw a box and whisker plot. |
|
Plot a horizontal sequence of rectangles. |
|
Clear the current axes. |
|
Label a contour plot. |
|
Clear the current figure. |
|
Set the color limits of the current image. |
|
Close a figure window. |
|
Plot the coherence between x and y. |
|
Add a colorbar to a plot. |
|
Bind function func to event s. |
|
Plot contour lines. |
|
Plot filled contours. |
|
Set the colormap to 'cool'. |
|
Set the colormap to 'copper'. |
|
Plot the cross-spectral density. |
|
Create a new Cycler object from a single positional argument, a pair of positional arguments, or the combination of keyword arguments. |
|
Plot datay against datax via |
|
|
|
Remove an ~.axes.Axes (defaulting to the current axes) from its figure. |
|
Disconnect the callback with id cid. |
|
Redraw the current figure. |
|
Redraw all stale managed figures, or, if force is True, all managed figures. |
Redraw the current figure if in interactive mode. |
|
|
Plot y versus x as lines and/or markers with attached errorbars. |
|
Plot identical parallel lines at the given positions. |
|
Calculate the width and height for a figure with a specified aspect ratio. |
|
Add a non-resampled image to the figure. |
|
Place a legend on the figure. |
|
Return whether the figure with the given id exists. |
|
Add text to figure. |
|
Create a new figure, or activate an existing figure. |
|
Plot filled polygons. |
|
Fill the area between two horizontal curves. |
|
Fill the area between two vertical curves. |
|
Find artist objects. |
|
Fit and plot function to datax and datay. |
|
Set the colormap to 'flag'. |
|
Plot function |
|
Get the current Axes. |
|
Get the current figure. |
|
Get the current colorable artist. |
|
Return the value of an .Artist's property, or print all of them. |
Return the name of the current backend. |
|
|
Get a colormap instance, defaulting to rc values if name is None. |
Return the figure manager of the current figure. |
|
Return a list of existing figure labels. |
|
Return a list of existing figure numbers. |
|
|
|
Get a sorted list of all of the plotting commands. |
|
Return the names of the available scales. |
|
|
Return the value of an .Artist's property, or print all of them. |
|
Blocking call to interact with a figure. |
|
Set the colormap to 'gray'. |
|
Configure the grid lines. |
|
Make a 2D hexagonal binning plot of points x, y. |
|
Compute and plot a histogram. |
|
Make a 2D histogram plot. |
|
Plot horizontal lines at each y from xmin to xmax. |
|
Set the colormap to 'hot'. |
|
Set the colormap to 'hsv'. |
|
Read an image from a file into an array. |
|
Colormap and save an array as an image file. |
|
Display data as an image, i.e., on a 2D regular raster. |
|
Set the colormap to 'inferno'. |
|
|
Connect to the display hook of the current shell. |
|
|
Set whether to redraw after every plotting command (e.g. |
|
Disable interactive mode. |
|
Enable interactive mode. |
Return whether plots are updated after every plotting command. |
|
|
Set the colormap to 'jet'. |
|
Place a legend on the Axes. |
|
Control behavior of major tick locators. |
|
Make a plot with log scaling on both the x and y axis. |
|
Set the colormap to 'magma'. |
|
Plot the magnitude spectrum. |
|
Set or retrieve autoscaling margins. |
|
Display an array as a matrix in a new figure window. |
Remove minor ticks from the Axes. |
|
Display minor ticks on the Axes. |
|
|
Create a new figure manager instance. |
Set the colormap to 'nipy_spectral'. |
|
|
Run the GUI event loop for interval seconds. |
|
Create a pseudocolor plot with a non-regular rectangular grid. |
|
Create a pseudocolor plot with a non-regular rectangular grid. |
|
Plot the phase spectrum. |
|
Plot a pie chart. |
|
Set the colormap to 'pink'. |
|
Set the colormap to 'plasma'. |
|
Plot y versus x as lines and/or markers. |
|
|
|
|
|
[Discouraged] Plot coercing the axis to treat floats as dates. |
|
Set default |
|
Plot datay vs datax |
|
Fit and Plot that Fit. |
|
|
|
Interpolate and Plot that Interpolation. |
|
|
|
|
|
Make a polar plot. |
|
Set the colormap to 'prism'. |
|
Plot the power spectral density. |
|
Plot a 2D field of arrows. |
|
Add a key to a quiver plot. |
|
Set the current .rcParams. group is the grouping for the rc, e.g., for |
|
Return a context manager for temporarily changing rcParams. |
Restore the .rcParams from Matplotlib's internal default style. |
|
|
[Deprecated] Add a colormap to the set recognized by |
|
Get or set the radial gridlines on the current polar plot. |
|
save plot |
|
Save the current figure. |
|
Set the current Axes to ax and the current Figure to the parent of ax. |
|
A scatter plot of y vs. |
|
Set the current image. |
|
Make a plot with log scaling on the x axis. |
|
Make a plot with log scaling on the y axis. |
|
Set the default colormap, and applies it to the current image if any. |
|
Set Matplotlib's root logger and root logger handler level, creating the handler if it does not exist yet. |
|
Set one or more properties on an .Artist, or list allowed values. |
|
|
|
Plot a spectrogram. |
|
Set the colormap to 'spring'. |
|
Plot the sparsity pattern of a 2D array. |
|
Draw a stacked area plot. |
|
A stepwise constant function as a line with bounding edges or a filled plot. |
|
Create a stem plot. |
|
Make a step plot. |
|
Draw streamlines of a vector flow. |
|
Add an Axes to the current figure or retrieve an existing Axes. |
|
Create a subplot at a specific location inside a regular grid. |
|
Build a layout of Axes based on ASCII art or nested lists. |
|
Launch a subplot tool window for a figure. |
|
Create a figure and a set of subplots. |
|
Adjust the subplot layout parameters. |
|
Set the colormap to 'summer'. |
|
Add a centered suptitle to the figure. |
|
Close all open figures and set the Matplotlib backend. |
|
Add a table to an ~.axes.Axes. |
|
Add text to the Axes. |
|
Get or set the theta gridlines on the current polar plot. |
|
Change the appearance of ticks, tick labels, and gridlines. |
|
Configure the .ScalarFormatter used by default for linear Axes. |
|
Adjust the padding between and around subplots. |
|
Set a title for the Axes. |
|
Draw contour lines on an unstructured triangular grid. |
|
Draw contour regions on an unstructured triangular grid. |
|
Create a pseudocolor plot of an unstructured triangular grid. |
|
Draw an unstructured triangular grid as lines and/or markers. |
|
Make and return a second axes that shares the x-axis. |
|
Make and return a second axes that shares the y-axis. |
Disconnect from the display hook of the current shell. |
|
|
Return the nominal values of the numbers in NumPy array arr. |
|
Return the standard deviations of the numbers in NumPy array arr. |
|
Make a violin plot. |
|
Set the colormap to 'viridis'. |
|
Plot vertical lines at each x from ymin to ymax. |
|
Blocking call to interact with the figure. |
|
Set the colormap to 'winter'. |
|
Plot the cross correlation between x and y. |
|
Turn on xkcd sketch-style drawing mode. |
|
Set the label for the x-axis. |
|
Get or set the x limits of the current axes. |
|
Set the xaxis' scale. |
|
Get or set the current tick locations and labels of the x-axis. |
|
Set the label for the y-axis. |
|
Get or set the y-limits of the current axes. |
|
Set the yaxis' scale. |
|
Get or set the current tick locations and labels of the y-axis. |
Classes
|
An .Annotation is a .Text that can refer to a specific position xy. |
|
An arrow patch. |
|
Abstract base class for objects that render into a FigureCanvas. |
Dynamically find major tick positions. |
|
|
The Axes contains most of the figure elements: ~.axis.Axis, ~.axis.Tick, ~.lines.Line2D, ~.text.Text, ~.patches.Polygon, etc., and sets the coordinate system. |
|
A GUI neutral button. |
|
A circle patch. |
|
Generic enumeration. |
Context manager for dynamic management of a stack of exit callbacks. |
|
|
The top level container for all the plot elements. |
|
Base class for .Figure and .SubFigure containing the methods that add artists to the figure or subfigure, create Axes, etc. |
|
The canvas the figure renders into. |
|
Return fixed strings for tick labels based only on position, not value. |
|
Tick locations are fixed. |
|
Use an old-style ('%' operator) format string to format the tick. |
Create a string based on a tick value and location. |
|
|
Use a user-defined function for formatting. |
|
A grid layout to place subplots within a figure. |
|
Place a tick on every multiple of some base number of points plotted, e.g., on every 5th point. |
|
A line - the line can have both a solid linestyle connecting all the vertices, and a marker at each vertex. |
|
Determine the tick locations |
|
Determine the tick locations; |
|
Base class for formatting ticks on a log or symlog scale. |
|
Format values for log axis using |
|
Format values for log axis using |
|
Determine the tick locations for log axes |
|
Find nice tick locations with no more than N being within the view limits. |
|
An enumeration. |
|
Set a tick on each integer multiple of a base within the view interval. |
|
A class which, when called, linearly normalizes data into the |
Always return the empty string. |
|
No ticks |
|
|
All numbers inherit from this class. |
|
A polar graph projection, where the input dimensions are theta, r. |
|
A general polygon patch. |
|
A rectangle defined via an anchor point xy and its width and height. |
|
Format tick values as a number. |
|
A slider representing a floating point range. |
alias of |
|
|
The location of a subplot in a GridSpec. |
|
Handle storing and drawing of text in window or data coordinates. |
|
Abstract base class for GUI neutral widgets. |