@@ -760,9 +760,10 @@ def _get_rgba_and_mask(self, X, alpha=None, bytes=False):
760
760
761
761
Returns
762
762
-------
763
- colors : array of RGBA values with a shape of ``X.shape + (4, )``.
764
- mask : boolean array with True where the input is ``np.nan`` or
765
- masked.
763
+ colors : np.ndarray
764
+ Array of RGBA values with a shape of ``X.shape + (4, )``.
765
+ mask : np.ndarray
766
+ Boolean array with True where the input is ``np.nan`` or masked.
766
767
"""
767
768
if not self ._isinit :
768
769
self ._init ()
@@ -2016,8 +2017,9 @@ class SegmentedBivarColormap(BivarColormap):
2016
2017
2017
2018
Parameters
2018
2019
----------
2019
- patch : np.array of shape (k, k, 3)
2020
- This patch gets supersampled to a lut of shape (N, M, 4).
2020
+ patch : np.array
2021
+ Patch is required to have a shape (k, l, 3), and will get supersampled
2022
+ to a lut of shape (N, N, 4).
2021
2023
N : int
2022
2024
The number of RGB quantization levels along each axis.
2023
2025
shape : {'square', 'circle', 'ignore', 'circleignore'}
@@ -2051,7 +2053,7 @@ def _init(self):
2051
2053
_patch [:, :, :3 ] = self .patch
2052
2054
_patch [:, :, 3 ] = 1
2053
2055
transform = mpl .transforms .Affine2D ().translate (- 0.5 , - 0.5 )\
2054
- .scale (self .N / (s [0 ] - 1 ), self .N / (s [0 ] - 1 ))
2056
+ .scale (self .N / (s [1 ] - 1 ), self .N / (s [0 ] - 1 ))
2055
2057
self ._lut = np .empty ((self .N , self .N , 4 ))
2056
2058
2057
2059
_image .resample (_patch , self ._lut , transform , _image .BILINEAR ,
0 commit comments