Skip to content

Commit

Permalink
Merge pull request #24323 from meeseeksmachine/auto-backport-of-pr-24…
Browse files Browse the repository at this point in the history
…320-on-v3.6.x

Backport PR #24320 on branch v3.6.x (DOC: add warning note to imsave)
  • Loading branch information
timhoffm committed Nov 1, 2022
2 parents 28fb5d1 + c2fb20a commit ea96879
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/matplotlib/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -1547,7 +1547,15 @@ def imread(fname, format=None):
def imsave(fname, arr, vmin=None, vmax=None, cmap=None, format=None,
origin=None, dpi=100, *, metadata=None, pil_kwargs=None):
"""
Save an array as an image file.
Colormap and save an array as an image file.
RGB(A) images are passed through. Single channel images will be
colormapped according to *cmap* and *norm*.
.. note ::
If you want to save a single channel image as gray scale please use an
image I/O library (such as pillow, tifffile, or imageio) directly.
Parameters
----------
Expand Down

0 comments on commit ea96879

Please sign in to comment.