Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit edf0078

Browse files
committed
Update docstring
1 parent 08e98da commit edf0078

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/cm.py

Lines 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)