matplotlib.axes¶Table of Contents
matplotlib.axes.Axes(fig, rect, facecolor=None, frameon=True, sharex=None, sharey=None, label='', xscale=None, yscale=None, **kwargs)[source]¶Bases: matplotlib.axes._base._AxesBase
The Axes contains most of the figure elements:
Axis, Tick,
Line2D, Text,
Polygon, etc., and sets the
coordinate system.
The Axes instance supports callbacks through a callbacks
attribute which is a CallbackRegistry
instance. The events you can connect to are 'xlim_changed' and
'ylim_changed' and the callback will be called with func(ax)
where ax is the Axes instance.
| Attributes: |
|
|---|
Build an axes in a figure.
| Parameters: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Returns: |
SubplotBase |
Base class for subplots, which are Axes instances with additional methods to facilitate generating and manipulating a set of Axes within a figure. |
subplot_class_factory |
This makes a new class that inherits from SubplotBase and the given axes_class (which is assumed to be a subclass of axes.Axes). |
Axes.plot |
Plot y versus x as lines and/or markers. |
Axes.errorbar |
Plot y versus x as lines and/or markers with attached errorbars. |
Axes.scatter |
A scatter plot of y vs x with varying marker size and/or color. |
Axes.plot_date |
Plot data that contains dates. |
Axes.step |
Make a step plot. |
Axes.loglog |
Make a plot with log scaling on both the x and y axis. |