Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 74723fa

Browse filesBrowse files
committed
Update docstring
1 parent 60fed35 commit 74723fa
Copy full SHA for 74723fa

File tree

1 file changed

+3
-0
lines changed
Filter options

1 file changed

+3
-0
lines changed

‎lib/matplotlib/cm.py

Copy file name to clipboardExpand all lines: lib/matplotlib/cm.py
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ def to_rgba(self, x, alpha=None, bytes=False, norm=True):
226226
array will be floats in the 0-1 range; if it is *True*,
227227
the returned rgba array will be uint8 in the 0 to 255 range.
228228
229+
If norm is False, no normalization of the input data is
230+
performed, and it is assumed to already be in the range (0-1).
231+
229232
Note: this method assumes the input is well-behaved; it does
230233
not check for anomalies such as *x* being a masked rgba
231234
array, or being an integer type other than uint8, or being

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.