FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

More concise comment · matplotlib/matplotlib@7e138a5 · GitHub

Repository navigation

Commit 7e138a5

Browse files
andauthored
More concise comment
Co-authored-by: Greg Lucas <greg.m.lucas@gmail.com>
1 parent 21090fc commit 7e138a5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎lib/matplotlib/cm.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,7 @@ def to_rgba(self, x, alpha=None, bytes=False, norm=True):
328328
treated as an RGB or RGBA array, and no mapping will be done.
329329
The array can be `~numpy.uint8`, or it can be floats with
330330
values in the 0-1 range; otherwise a ValueError will be raised.
331-
Any nans will be set to 0 alpha and if *x* it is a masked array, any
332-
masked elements will be set to 0 alpha.
331+
Any nans or masked elements will be set to 0 alpha.
333332
If the last dimension is 3, the *alpha* kwarg (defaulting to 1)
334333
will be used to fill in the transparency. If the last dimension
335334
is 4, the *alpha* kwarg is ignored; it does not

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL