make_axes_gridspec(parent, *, location=None, orientation=None, fraction=0.15, shrink=1.0, aspect=20, **kw)
The axes is placed in the figure of the parent axes, by resizing and repositioning parent.
This function is similar to .make_axes
. Primary differences are
.make_axes_gridspec
should only be used with a .SubplotBase
parent.
.make_axes
creates an :None:None:`~.axes.Axes`
; .make_axes_gridspec
creates a .SubplotBase
.
.make_axes
updates the position of the parent. .make_axes_gridspec
replaces the grid_spec
attribute of the parent with a new one.
While this function is meant to be compatible with .make_axes
, there could be some minor differences.
Fraction of original axes between colorbar and new image axes.
The anchor point of the colorbar axes. Defaults to (0.0, 0.5) if vertical; (0.5, 1.0) if horizontal.
The anchor point of the colorbar parent axes. If False, the parent axes' anchor will be unchanged. Defaults to (1.0, 0.5) if vertical; (0.5, 0.0) if horizontal.
The Axes to use as parent for placing the colorbar.
The location, relative to the parent axes, where the colorbar axes is created. It also determines the orientation of the colorbar (colorbars on the left and right are vertical, colorbars at the top and bottom are horizontal). If None, the location will come from the orientation if it is set (vertical colorbars on the right, horizontal ones at the bottom), or default to 'right' if orientation is unset.
The orientation of the colorbar. It is preferable to set the location of the colorbar, as that also determines the orientation; passing incompatible values for location and orientation raises an exception.
Fraction of original axes to use for colorbar.
Fraction by which to multiply the size of the colorbar.
Ratio of long to short dimensions.
The child axes.
The reduced keyword dictionary to be passed when creating the colorbar instance.
Create a .SubplotBase
suitable for a colorbar.
The following pages refer to to this document either explicitly or contain code examples using this.
matplotlib.colorbar.make_axes_gridspec
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