mpl_toolkits.axes_grid1.anchored_artists.
AnchoredDrawingArea
(width, height, xdescent, ydescent, loc, pad=0.4, borderpad=0.5, prop=None, frameon=True, **kwargs)[source]¶Bases: matplotlib.offsetbox.AnchoredOffsetbox
An anchored container with a fixed size and fillable DrawingArea.
Artists added to the drawing_area will have their coordinates interpreted as pixels. Any transformations set on the artists will be overridden.
Parameters: |
|
---|
Examples
To display blue and red circles of different sizes in the upper right of an axes ax:
>>> ada = AnchoredDrawingArea(20, 20, 0, 0,
... loc='upper right', frameon=False)
>>> ada.drawing_area.add_artist(Circle((10, 10), 10, fc="b"))
>>> ada.drawing_area.add_artist(Circle((30, 10), 5, fc="r"))
>>> ax.add_artist(ada)
Attributes: |
|
---|