MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / pcolorfast

Method pcolorfast

lib/matplotlib/axes/_axes.py:6935–7133  ·  view source on GitHub ↗

Create a pseudocolor plot with a non-regular rectangular grid. Call signature:: ax.pcolorfast([X, Y], C, /, **kwargs) The arguments *X*, *Y*, *C* are positional-only. This method is similar to `~.Axes.pcolor` and `~.Axes.pcolormesh`. It's desi

(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
                   vmax=None, colorizer=None, **kwargs)

Source from the content-addressed store, hash-verified

6933 @_preprocess_data()
6934 @_docstring.interpd
6935 def pcolorfast(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
6936 vmax=None, colorizer=None, **kwargs):
6937 """
6938 Create a pseudocolor plot with a non-regular rectangular grid.
6939
6940 Call signature::
6941
6942 ax.pcolorfast([X, Y], C, /, **kwargs)
6943
6944 The arguments *X*, *Y*, *C* are positional-only.
6945
6946 This method is similar to `~.Axes.pcolor` and `~.Axes.pcolormesh`.
6947 It's designed to provide the fastest pcolor-type plotting with the
6948 Agg backend. To achieve this, it uses different algorithms internally
6949 depending on the complexity of the input grid (regular rectangular,
6950 non-regular rectangular or arbitrary quadrilateral).
6951
6952 .. warning::
6953
6954 This method is experimental. Compared to `~.Axes.pcolor` or
6955 `~.Axes.pcolormesh` it has some limitations:
6956
6957 - It supports only flat shading (no outlines)
6958 - It lacks support for log scaling of the axes.
6959 - It does not have a pyplot wrapper.
6960
6961 Parameters
6962 ----------
6963 C : array-like
6964 The image data. Supported array shapes are:
6965
6966 - (M, N): an image with scalar data. Color-mapping is controlled
6967 by *cmap*, *norm*, *vmin*, and *vmax*.
6968 - (M, N, 3): an image with RGB values (0-1 float or 0-255 int).
6969 - (M, N, 4): an image with RGBA values (0-1 float or 0-255 int),
6970 i.e. including transparency.
6971
6972 The first two dimensions (M, N) define the rows and columns of
6973 the image.
6974
6975 This parameter can only be passed positionally.
6976
6977 X, Y : tuple or array-like, default: ``(0, N)``, ``(0, M)``
6978 *X* and *Y* are used to specify the coordinates of the
6979 quadrilaterals. There are different ways to do this:
6980
6981 - Use tuples ``X=(xmin, xmax)`` and ``Y=(ymin, ymax)`` to define
6982 a *uniform rectangular grid*.
6983
6984 The tuples define the outer edges of the grid. All individual
6985 quadrilaterals will be of the same size. This is the fastest
6986 version.
6987
6988 - Use 1D arrays *X*, *Y* to specify a *non-uniform rectangular
6989 grid*.
6990
6991 In this case *X* and *Y* have to be monotonic 1D arrays of length
6992 *N+1* and *M+1*, specifying the x and y boundaries of the cells.

Callers 11

test_tight_pcolorfastFunction · 0.80
test_pcolorfastMethod · 0.80
test_nargs_pcolorfastFunction · 0.80
test_pcolorfastFunction · 0.80
test_pcolorfast_bad_dimsFunction · 0.80
test_axes_marginsFunction · 0.80
test_wrong_use_colorizerFunction · 0.80
pcolor_demo.pyFile · 0.80

Calls 11

add_collectionMethod · 0.80
minMethod · 0.80
maxMethod · 0.80
add_imageMethod · 0.80
shapeMethod · 0.45
_scale_normMethod · 0.45
get_clip_pathMethod · 0.45
set_clip_pathMethod · 0.45
update_datalimMethod · 0.45

Tested by 10

test_tight_pcolorfastFunction · 0.64
test_pcolorfastMethod · 0.64
test_nargs_pcolorfastFunction · 0.64
test_pcolorfastFunction · 0.64
test_pcolorfast_bad_dimsFunction · 0.64
test_axes_marginsFunction · 0.64
test_wrong_use_colorizerFunction · 0.64