r""" Create a pseudocolor plot with a non-regular rectangular grid. Call signature:: pcolor([X, Y,] C, /, **kwargs) *X* and *Y* can be used to specify the corners of the quadrilaterals. The arguments *X*, *Y*, *C* are positional-only. .. hint:
(self, *args, shading=None, alpha=None, norm=None, cmap=None,
vmin=None, vmax=None, colorizer=None, **kwargs)
| 6506 | @_preprocess_data() |
| 6507 | @_docstring.interpd |
| 6508 | def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None, |
| 6509 | vmin=None, vmax=None, colorizer=None, **kwargs): |
| 6510 | r""" |
| 6511 | Create a pseudocolor plot with a non-regular rectangular grid. |
| 6512 | |
| 6513 | Call signature:: |
| 6514 | |
| 6515 | pcolor([X, Y,] C, /, **kwargs) |
| 6516 | |
| 6517 | *X* and *Y* can be used to specify the corners of the quadrilaterals. |
| 6518 | |
| 6519 | The arguments *X*, *Y*, *C* are positional-only. |
| 6520 | |
| 6521 | .. hint:: |
| 6522 | |
| 6523 | ``pcolor()`` can be very slow for large arrays. In most |
| 6524 | cases you should use the similar but much faster |
| 6525 | `~.Axes.pcolormesh` instead. See |
| 6526 | :ref:`Differences between pcolor() and pcolormesh() |
| 6527 | <differences-pcolor-pcolormesh>` for a discussion of the |
| 6528 | differences. |
| 6529 | |
| 6530 | Parameters |
| 6531 | ---------- |
| 6532 | C : 2D array-like |
| 6533 | The color-mapped values. Color-mapping is controlled by *cmap*, |
| 6534 | *norm*, *vmin*, and *vmax*. |
| 6535 | |
| 6536 | X, Y : array-like, optional |
| 6537 | The coordinates of the corners of quadrilaterals of a pcolormesh:: |
| 6538 | |
| 6539 | (X[i+1, j], Y[i+1, j]) (X[i+1, j+1], Y[i+1, j+1]) |
| 6540 | ●╶───╴● |
| 6541 | │ │ |
| 6542 | ●╶───╴● |
| 6543 | (X[i, j], Y[i, j]) (X[i, j+1], Y[i, j+1]) |
| 6544 | |
| 6545 | Note that the column index corresponds to the x-coordinate, and |
| 6546 | the row index corresponds to y. For details, see the |
| 6547 | :ref:`Notes <axes-pcolormesh-grid-orientation>` section below. |
| 6548 | |
| 6549 | If ``shading='flat'`` the dimensions of *X* and *Y* should be one |
| 6550 | greater than those of *C*, otherwise a TypeError is raised. The |
| 6551 | quadrilateral is colored due to the value at ``C[i, j]``. |
| 6552 | |
| 6553 | If ``shading='nearest'``, the dimensions of *X* and *Y* should be |
| 6554 | the same as those of *C* (if not, a TypeError will be raised). The |
| 6555 | color ``C[i, j]`` will be centered on ``(X[i, j], Y[i, j])``. |
| 6556 | |
| 6557 | If *X* and/or *Y* are 1-D arrays or column vectors they will be |
| 6558 | expanded as needed into the appropriate 2D arrays, making a |
| 6559 | rectangular grid. |
| 6560 | |
| 6561 | shading : {'flat', 'nearest', 'auto'}, default: :rc:`pcolor.shading` |
| 6562 | The fill style for the quadrilateral. Possible values: |
| 6563 | |
| 6564 | - 'flat': A solid color is used for each quad. The color of the |
| 6565 | quad (i, j), (i+1, j), (i, j+1), (i+1, j+1) is given by |