8000 Merge pull request #4317 from caspervdw/imshow-note · matplotlib/matplotlib@5da286b · GitHub
[go: up one dir, main page]

Skip to content

Commit 5da286b

Browse files
committed
Merge pull request #4317 from caspervdw/imshow-note
DOC : Note about pixel placement in imshow This as redundant with the comment for `extent` but this makes it easier to find.
2 parents cd5edcf + ca2bfc8 commit 5da286b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4683,6 +4683,12 @@ def imshow(self, X, cmap=None, norm=None, aspect=None,
46834683
--------
46844684
matshow : Plot a matrix or an array as an image.
46854685
4686+
Notes
4687+
-----
4688+
Unless *extent* is used, pixel centers will be located at integer
4689+
coordinates. In other words: the origin will coincide with the center
4690+
of pixel (0, 0).
4691+
46864692
Examples
46874693
--------
46884694

0 commit comments

Comments
 (0)
0