matplotlib.axes.Axes.add_collection#
- Axes.add_collection(collection, autolim=True)[source]#
Add a
Collection
to the Axes; return the collection.
Examples using matplotlib.axes.Axes.add_collection
#
![](../../_images/sphx_glr_errorbars_and_boxes_thumb.png)
Creating boxes from error bars using PatchCollection
Creating boxes from error bars using PatchCollection
![](../../_images/sphx_glr_collections_thumb.png)
Line, Poly and RegularPoly Collection with autoscaling
Line, Poly and RegularPoly Collection with autoscaling