Scales are separable transformations, working on a single dimension.
Subclasses should override
name
The scale's name.
get_transform
A method returning a .Transform
, which converts data coordinates to scaled coordinates. This transform should be invertible, so that e.g. mouse positions can be converted back to data coordinates.
set_default_locators_and_formatters
A method that sets default locators and formatters for an ~.axis.Axis
that uses this scale.
limit_range_for_scale
An optional method that "fixes" the axis range to acceptable values, e.g. restricting log-scaled axes to positive values.
The base class for all scales.
The following pages refer to to this document either explicitly or contain code examples using this.
matplotlib.axes._base._AxesBase.__init__
matplotlib.scale
matplotlib.pyplot.gca
matplotlib.artist._make_class_factory.<locals>.class_factory.<locals>.subcls.set
matplotlib.pyplot.axes
matplotlib.figure.FigureBase.add_subplot
matplotlib.colors.make_norm_from_scale
matplotlib.figure.FigureBase.add_axes
matplotlib.figure.FigureBase.gca
matplotlib.artist.SecondaryAxis.set
matplotlib.artist.PolarAxes.set
matplotlib.pyplot.subplot
matplotlib.artist._AxesBase.set
matplotlib.artist.Axes.set
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them