From 92d215e8a4c2394e6ed130f756a49e619ab79e93 Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Tue, 2 Jan 2024 15:28:42 +0100 Subject: [PATCH] Update README.md Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com> --- matplotlib/subplots/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/matplotlib/subplots/README.md b/matplotlib/subplots/README.md index 54cd97b..bc20ca7 100644 --- a/matplotlib/subplots/README.md +++ b/matplotlib/subplots/README.md @@ -26,3 +26,15 @@ matplotlib.pyplot.subplots(nrows=1, ncols=1, *, sharex=False, sharey=False, sque > Number of rows/columns of the subplot grid. +## [matplotlib.axes.Axes.imshow](https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.imshow.html) + +```python +Axes.imshow(X, cmap=None, norm=None, *, aspect=None, interpolation=None, alpha=None, vmin=None, vmax=None, origin=None, extent=None, interpolation_stage=None, filternorm=True, filterrad=4.0, resample=None, url=None, data=None, **kwargs)[source] +``` + +> Display data as an image, i.e., on a 2D regular raster. +> +> The input may either be actual RGB(A) data, or 2D scalar data, which will be rendered as a pseudocolor image. For displaying a grayscale image, set up the colormapping using the parameters cmap='gray', vmin=0, vmax=255. +> +> The number of pixels used to render an image is set by the Axes size and the figure dpi. This can lead to aliasing artifacts when the image is resampled, because the displayed image size will usually not match the size of X (see Image antialiasing). The resampling can be controlled via the interpolation parameter and/or rcParams["image.interpolation"] (default: 'antialiased'). +