@@ -7142,6 +7142,10 @@ def pcolor(self, *args, **kwargs):
7142
7142
"""
7143
7143
Create a pseudocolor plot of a 2-D array.
7144
7144
7145
+ Note: pcolor can be very slow for large arrays; consider
7146
+ using the similar but much faster
7147
+ :func:`~matplotlib.pyplot.pcolormesh` instead.
7148
+
7145
7149
Call signatures::
7146
7150
7147
7151
pcolor(C, **kwargs)
@@ -7272,6 +7276,11 @@ def pcolor(self, *args, **kwargs):
7272
7276
Stroking the edges may be preferred if *alpha* is 1, but
7273
7277
will cause artifacts otherwise.
7274
7278
7279
+ .. seealso::
7280
+
7281
+ :func:`~matplotlib.pyplot.pcolormesh`
7282
+ For an explanation of the differences between
7283
+ pcolor and pcolormesh.
7275
7284
"""
7276
7285
7277
7286
if not self ._hold : self .cla ()
@@ -7498,23 +7507,25 @@ def pcolorfast(self, *args, **kwargs):
7498
7507
"""
7499
7508
pseudocolor plot of a 2-D array
7500
7509
7501
- Experimental; this is a version of pcolor that
7502
- does not draw lines, that provides the fastest
7503
- possible rendering with the Agg backend, and that
7504
- can handle any quadrilateral grid.
7510
+ Experimental; this is a pcolor-type method that
7511
+ provides the fastest possible rendering with the Agg
7512
+ backend, and that can handle any quadrilateral grid.
7513
+ It supports only flat shading (no outlines), it lacks
7514
+ support for log scaling of the axes, and it does not
7515
+ have a pyplot wrapper.
7505
7516
7506
7517
Call signatures::
7507
7518
7508
- pcolor (C, **kwargs)
7509
- pcolor (xr, yr, C, **kwargs)
7510
- pcolor (x, y, C, **kwargs)
7511
- pcolor (X, Y, C, **kwargs)
7519
+ ax.pcolorfast (C, **kwargs)
7520
+ ax.pcolorfast (xr, yr, C, **kwargs)
7521
+ ax.pcolorfast (x, y, C, **kwargs)
7522
+ ax.pcolorfast (X, Y, C, **kwargs)
7512
7523
7513
7524
C is the 2D array of color values corresponding to quadrilateral
7514
7525
cells. Let (nr, nc) be its shape. C may be a masked array.
7515
7526
7516
- ``pcolor (C, **kwargs)`` is equivalent to
7517
- ``pcolor ([0,nc], [0,nr], C, **kwargs)``
7527
+ ``ax.pcolorfast (C, **kwargs)`` is equivalent to
7528
+ ``ax.pcolorfast ([0,nc], [0,nr], C, **kwargs)``
7518
7529
7519
7530
*xr*, *yr* specify the ranges of *x* and *y* corresponding to the
7520
7531
rectangular region bounding *C*. If::
0 commit comments