| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 21090fc commit 7e138a5
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -328,8 +328,7 @@ def to_rgba(self, x, alpha=None, bytes=False, norm=True): | |||
| 328 | 328 | treated as an RGB or RGBA array, and no mapping will be done. | |
| 329 | 329 | The array can be `~numpy.uint8`, or it can be floats with | |
| 330 | 330 | 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. | ||
| 333 | 332 | If the last dimension is 3, the *alpha* kwarg (defaulting to 1) | |
| 334 | 333 | will be used to fill in the transparency. If the last dimension | |
| 335 | 334 | is 4, the *alpha* kwarg is ignored; it does not | |
| Back | FazBrowse Home | New Git URL |
0 commit comments