There was an error while loading. Please reload this page.
2 parents f05167c + d2569a3 commit 09c7b7bCopy full SHA for 09c7b7b
1 file changed
lib/matplotlib/pyplot.py
@@ -2412,18 +2412,15 @@ def matshow(A: ArrayLike, fignum: None | int = None, **kwargs) -> AxesImage:
2412
The matrix to be displayed.
2413
2414
fignum : None or int
2415
- If *None*, create a new figure window with automatic numbering.
+ If *None*, create a new, appropriately sized figure window.
2416
2417
- If a nonzero integer, draw into the figure with the given number
2418
- (create it if it does not exist).
+ If 0, use the current Axes (creating one if there is none, without ever
+ adjusting the figure size).
2419
2420
- If 0, use the current axes (or create one if it does not exist).
2421
-
2422
- .. note::
2423
2424
- Because of how `.Axes.matshow` tries to set the figure aspect
2425
- ratio to be the one of the array, strange things may happen if you
2426
- reuse an existing figure.
+ Otherwise, create a new Axes on the figure with the given number
+ (creating it at the appropriate size if it does not exist, but not
+ adjusting the figure size otherwise). Note that this will be drawn on
+ top of any preexisting Axes on the figure.
2427
2428
Returns
2429
-------
0 commit comments