mpl_toolkits.axes_grid1.anchored_artists.
AnchoredAuxTransformBox
(transform, loc, pad=0.4, borderpad=0.5, prop=None, frameon=True, **kwargs)[source]¶Bases: matplotlib.offsetbox.AnchoredOffsetbox
An anchored container with transformed coordinates.
Artists added to the drawing_area are scaled according to the coordinates of the transformation used. The dimensions of this artist will scale to contain the artists added.
Parameters: |
|
---|
Examples
To display an ellipse in the upper left, with a width of 0.1 and height of 0.4 in data coordinates:
>>> box = AnchoredAuxTransformBox(ax.transData, loc='upper left')
>>> el = Ellipse((0,0), width=0.1, height=0.4, angle=30)
>>> box.drawing_area.add_artist(el)
>>> ax.add_artist(box)
Attributes: |
|
---|
mpl_toolkits.axes_grid1.anchored_artists.AnchoredAuxTransformBox
¶