@@ -1780,29 +1780,34 @@ class PatchCollection(Collection):
1780
1780
"""
1781
1781
A generic collection of patches.
1782
1782
1783
- This makes it easier to assign a colormap to a heterogeneous
1783
+ PatchCollection draws faster than a large number of equivalent individual
1784
+ Patches. It also makes it easier to assign a colormap to a heterogeneous
1784
1785
collection of patches.
1785
-
1786
- This also may improve plotting speed, since PatchCollection will
1787
- draw faster than a large number of patches.
1788
1786
"""
1789
1787
1790
1788
def __init__ (self , patches , match_original = False , ** kwargs ):
1791
1789
"""
1792
- *patches*
1793
- a sequence of Patch objects. This list may include
1790
+ Parameters
1791
+ ----------
1792
+ patches : list of `.Patch`
1793
+ A sequence of Patch objects. This list may include
1794
1794
a heterogeneous assortment of different patch types.
1795
1795
1796
- * match_original*
1796
+ match_original : bool, default: False
1797
1797
If True, use the colors and linewidths of the original
1798
1798
patches. If False, new colors may be assigned by
1799
1799
providing the standard collection arguments, facecolor,
1800
1800
edgecolor, linewidths, norm or cmap.
1801
1801
1802
- If any of *edgecolors*, *facecolors*, *linewidths*, *antialiaseds* are
1803
- None, they default to their `.rcParams` patch setting, in sequence
1804
- form.
1802
+ **kwargs
1803
+ All other parameters are forwarded to `.Collection`.
1805
1804
1805
+ If any of *edgecolors*, *facecolors*, *linewidths*, *antialiaseds*
1806
+ are None, they default to their `.rcParams` patch setting, in
1807
+ sequence form.
1808
+
1809
+ Notes
1810
+ -----
1806
1811
The use of `~matplotlib.cm.ScalarMappable` functionality is optional.
1807
1812
If the `~matplotlib.cm.ScalarMappable` matrix ``_A`` has been set (via
1808
1813
a call to `~.ScalarMappable.set_array`), at draw time a call to scalar
0 commit comments