@@ -426,17 +426,17 @@ def _scale_norm(self, norm, vmin, vmax):
426426
427427 def to_rgba (self , x , alpha = None , bytes = False , norm = True ):
428428 """
429- Return a normalized rgba array corresponding to *x*.
429+ Return a normalized RGBA array corresponding to *x*.
430430
431431 In the normal case, *x* is a 1D or 2D sequence of scalars, and
432- the corresponding `~numpy.ndarray` of rgba values will be returned,
432+ the corresponding `~numpy.ndarray` of RGBA values will be returned,
433433 based on the norm and colormap set for this ScalarMappable.
434434
435435 There is one special case, for handling images that are already
436- rgb or rgba , such as might have been read from an image file.
436+ RGB or RGBA , such as might have been read from an image file.
437437 If *x* is an `~numpy.ndarray` with 3 dimensions,
438438 and the last dimension is either 3 or 4, then it will be
439- treated as an rgb or rgba array, and no mapping will be done.
439+ treated as an RGB or RGBA array, and no mapping will be done.
440440 The array can be uint8, or it can be floating point with
441441 values in the 0-1 range; otherwise a ValueError will be raised.
442442 If it is a masked array, the mask will be ignored.
@@ -446,9 +446,9 @@ def to_rgba(self, x, alpha=None, bytes=False, norm=True):
446446 replace the preexisting alpha. A ValueError will be raised
447447 if the third dimension is other than 3 or 4.
448448
449- In either case, if *bytes* is *False* (default), the rgba
449+ In either case, if *bytes* is *False* (default), the RGBA
450450 array will be floats in the 0-1 range; if it is *True*,
451- the returned rgba array will be uint8 in the 0 to 255 range.
451+ the returned RGBA array will be uint8 in the 0 to 255 range.
452452
453453 If norm is False, no normalization of the input data is
454454 performed, and it is assumed to be in the range (0-1).
0 commit comments