Version 3.0.3
matplotlib
Fork me on GitHub

mpl_toolkits.axisartist.axislines.Axes

class mpl_toolkits.axisartist.axislines.Axes(*args, grid_helper=None, **kwargs)[source]

Bases: matplotlib.axes._axes.Axes

class AxisDict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)[source]

Bases: dict

axis

Convenience method to get or set some axis properties.

Call signatures:

xmin, xmax, ymin, ymax = axis()
xmin, xmax, ymin, ymax = axis(xmin, xmax, ymin, ymax)
xmin, xmax, ymin, ymax = axis(option)
xmin, xmax, ymin, ymax = axis(**kwargs)
Parameters:
xmin, ymin, xmax, ymax : float, optional

The axis limits to be set. Either none or all of the limits must be given.

option : str

Possible values:

Value Description
'on' Turn on axis lines and labels.
'off' Turn off axis lines and labels.
'equal' Set equal scaling (i.e., make circles circular) by changing axis limits.
'scaled' Set equal scaling (i.e., make circles circular) by changing dimensions of the plot box.
'tight' Set limits just large enough to show all data.
'auto' Automatic scaling (fill plot box with data).
'normal' Same as 'auto'; deprecated.
'image' 'scaled' with axis limits equal to data limits.
'square' Square plot; similar to 'scaled', but initially forcing xmax-xmin = ymax-ymin.
emit : bool, optional, default True

Whether observers are notified of the axis limit change. This option is passed on to set_xlim and set_ylim.

Returns:
xmin, xmax, ymin, ymax : float

The axis limits.

cla()[source]

Clear the current axes.

get_children()[source]

return a list of child artists

get_grid_helper()[source]
grid(b=None, which='major', axis='both', **kwargs)[source]

Toggle the gridlines, and optionally set the properties of the lines.

invalidate_grid_helper()[source]
new_fixed_axis(loc, offset=None)[source]
new_floating_axis(nth_coord, value, axis_direction='bottom')[source]
new_gridlines(grid_helper=None)[source]

Create and return a new GridlineCollection instance.

which : "major" or "minor" axis : "both", "x" or "y"

toggle_axisline(b=None)[source]