extent: scalars (left, right, bottom, top), optional
The bounding box in data coordinates that the image will fill. The image is stretched individually along x and y to fill the box.
The default extent is determined by the following conditions. Pixels have unit size in data coordinates. Their centers are on integer coordinates, and their center coordinates range from 0 to columns-1 horizontally and from 0 to rows-1 vertically.
Note that the direction of the vertical axis and thus the default values for top and bottom depend on origin:
For origin == 'upper' the default is (-0.5, numcols-0.5, numrows-0.5, -0.5).
For origin == 'lower' the default is (-0.5, numcols-0.5, -0.5, numrows-0.5).
See the
origin and extent in imshow tutorial for examples and a more detailed description.
Partager