All non-affine transformations should be subclasses of this class. New affine transformations should be subclasses of Affine2D
.
Subclasses of this class should override the following members (at minimum):
input_dims
output_dims
transform
inverted
(if an inverse exists)
The following attributes may be overridden if the default is unsuitable:
is_separable
(defaults to True for 1D -> 1D transforms, False otherwise)
has_inverse
(defaults to True if inverted
is overridden, False otherwise)
If the transform needs to do something non-standard with matplotlib.path.Path
objects, such as adding curves where there were once line segments, it should override:
transform_path
The base class of all TransformNode
instances that actually perform a transformation.
The following pages refer to to this document either explicitly or contain code examples using this.
matplotlib.axes._axes.Axes.broken_barhmatplotlib.artist.Patch.setmatplotlib.artist.Artist.get_transformmatplotlib.patches.RegularPolygon.__init__matplotlib.artist.ThetaAxis.setmatplotlib.artist.AsteriskPolygonCollection.setmatplotlib.artist.QuadMesh.setmatplotlib.table.Tablematplotlib.artist.CirclePolygon.setmatplotlib.axes._axes.Axes.quivermatplotlib.pyplot.pcolormatplotlib.artist.YTick.setmatplotlib.patches.Wedge.__init__matplotlib.artist.BrokenBarHCollection.setmatplotlib.pyplot.fill_betweenmatplotlib.table.Cell.set_text_propsmatplotlib.axes._base._AxesBase.__init__matplotlib.patches.Polygon.__init__matplotlib.artist.StepPatch.setmatplotlib.artist.OffsetImage.setmatplotlib.path.get_path_collection_extentsmatplotlib.pyplot.axvspanmatplotlib.artist.RadialAxis.setmatplotlib.artist.BboxImage.setmatplotlib.patches.PathPatch.__init__matplotlib.artist.PathCollection.setmatplotlib.axes._axes.Axes.barbsmatplotlib.patches.Patch.get_patch_transformmatplotlib.artist.Table.setmatplotlib.artist.PatchCollection.setmatplotlib.patches.FancyArrowPatch.__init__matplotlib.artist.Ellipse.setmatplotlib.patches.FancyArrow.__init__matplotlib.artist.AnchoredOffsetbox.setmatplotlib.axes._axes.Axes.axhspanmatplotlib.artist.Shadow.setmatplotlib.pyplot.barbsmatplotlib.pyplot.textmatplotlib.patches.Patch.__init__matplotlib.scale.ScaleBase.get_transformmatplotlib.artist.Rectangle.setmatplotlib.patches.Circle.__init__matplotlib.figure.Figure.__init__matplotlib.scale.ScaleBasematplotlib.figure.FigureBase.add_axesmatplotlib.patches.Arrow.__init__matplotlib.transforms._make_str_methodmatplotlib.artist.HPacker.setmatplotlib.artist.RegularPolygon.setmatplotlib.artist.FancyArrowPatch.setmatplotlib.text.Annotation.__init__matplotlib.axes._axes.Axes.fill_betweenmatplotlib.artist.PolyCollection.setmatplotlib.artist.AxesImage.setmatplotlib.artist.LineCollection.setmatplotlib.patches.Patch.get_transformmatplotlib.scale.FuncScaleLog.get_transformmatplotlib.axes._axes.Axes.secondary_yaxismatplotlib.axes._axes.Axes.annotatematplotlib.pyplot.figtextmatplotlib.figure.FigureBase.textmatplotlib.artist.Axis.setmatplotlib.patches.FancyBboxPatch.__init__matplotlib.axes._axes.Axes.arrowmatplotlib.artist.VPacker.setmatplotlib.artist._make_class_factory.<locals>.class_factory.<locals>.subcls.setmatplotlib.pyplot.barmatplotlib.artist.LambertAxes.setmatplotlib.artist.Axes.setmatplotlib.artist.Tick.setmatplotlib.pyplot.axhspanmatplotlib.artist.PcolorImage.setmatplotlib.artist.CircleCollection.setmatplotlib.artist.Legend.setmatplotlib.axes._axes.Axes.hexbinmatplotlib.artist.SubFigure.setmatplotlib.pyplot.tablematplotlib.artist.Figure.setmatplotlib.axes._axes.Axes.fill_betweenxmatplotlib.axes._axes.Axes.pcolormatplotlib.patches.CirclePolygon.__init__matplotlib.quiver.Barbs.__init__matplotlib.artist.Wedge.setmatplotlib.pyplot.pcolormeshmatplotlib.artist.Collection.setmatplotlib.artist.FigureImage.setmatplotlib.pyplot.hexbinmatplotlib.artist.TriMesh.setmatplotlib.artist.PaddedBox.setmatplotlib.artist.Spine.setmatplotlib.transforms.TransformWrapper.__init__matplotlib.axes._axes.Axes.barmatplotlib.patches.Ellipse.__init__matplotlib.patches.StepPatch.__init__matplotlib.collections.Collection.get_offset_transformmatplotlib.patches.ConnectionPatch.__init__matplotlib.patches.Rectangle.__init__matplotlib.artist.AnchoredText.setmatplotlib.axes._axes.Axes.indicate_insetmatplotlib.patches.Shadow.__init__matplotlib.spines.Spine.__init__matplotlib.artist.Arrow.setmatplotlib.artist.Annulus.setmatplotlib.artist.Polygon.setmatplotlib.offsetbox.DrawingArea.get_transformmatplotlib.axes._axes.Axes.pcolormeshmatplotlib.artist.Annotation.setmatplotlib.patches.Arc.__init__matplotlib.artist._CollectionWithSizes.setmatplotlib.pyplot.barhmatplotlib.sankey.Sankey.addmatplotlib.artist.RadialTick.setmatplotlib.artist.SecondaryAxis.setmatplotlib.artist.PolarAxes.setmatplotlib.artist.PathPatch.setmatplotlib.artist.GeoAxes.setmatplotlib.figure.SubFigure.__init__matplotlib.patches.Annulus.__init__matplotlib.artist.EventCollection.setmatplotlib.artist.FigureBase.setmatplotlib.pyplot.fill_betweenxmatplotlib.artist.StarPolygonCollection.setmatplotlib.quiver.Quiver.__init__matplotlib.artist.FancyBboxPatch.setmatplotlib.artist.EllipseCollection.setmatplotlib.axes._axes.Axes.secondary_xaxismatplotlib.artist.XTick.setmatplotlib.artist.ConnectionPatch.setmatplotlib.artist._ColorbarSpine.setmatplotlib.artist.PackerBase.setmatplotlib.artist.Arc.setmatplotlib.axes._axes.Axes.textmatplotlib.artist.RegularPolyCollection.setmatplotlib.artist.Barbs.setmatplotlib.artist.Text.setmatplotlib.axes._axes.Axes.axvspanmatplotlib.artist.Circle.setmatplotlib.patches.Patch.get_data_transformmatplotlib.artist.HammerAxes.setmatplotlib.artist.ThetaTick.setmatplotlib.figure.FigureBase.gcamatplotlib.artist._ImageBase.setmatplotlib.pyplot.subplotmatplotlib.artist.NonUniformImage.setmatplotlib.text.Text.__init__matplotlib.pyplot.gcamatplotlib.pyplot.axesmatplotlib.pyplot.quivermatplotlib.figure.FigureBase.add_subplotmatplotlib.artist._AxLine.setmatplotlib.pyplot.broken_barhmatplotlib.axes._axes.Axes.barhmatplotlib.pyplot.annotatematplotlib.artist.XAxis.setmatplotlib.artist.FancyArrow.setmatplotlib.artist.MollweideAxes.setmatplotlib.artist.ClabelText.setmatplotlib.pyplot.arrowmatplotlib.artist.QuiverKey.setmatplotlib.artist.OffsetBox.setmatplotlib.artist.Artist.setmatplotlib.artist._AxesBase.setmatplotlib.artist.AitoffAxes.setmatplotlib.artist.AnnotationBbox.setmatplotlib.artist.Quiver.setmatplotlib.artist.YAxis.setHover 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