change call signature of colorizer._ensure_multivariate_data() · matplotlib/matplotlib@e1ee7dc · GitHub
Skip to content

Commit e1ee7dc

Browse files
committed
change call signature of colorizer._ensure_multivariate_data()
changed from colorizer._ensure_multivariate_data(n_input, A) to colorizer._ensure_multivariate_data(A, n_input)
1 parent cbb1979 commit e1ee7dc

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/matplotlib/axes/_axes.py

Lines changed: 4 additions & 4 deletions

lib/matplotlib/colorizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ def set_array(self, A):
582582
self._A = None
583583
return
584584

585-
A = _ensure_multivariate_data(self.norm.n_input, A)
585+
A = _ensure_multivariate_data(A, self.norm.n_input)
586586

587587
A = cbook.safe_masked_invalid(A, copy=True)
588588
if not np.can_cast(A.dtype, float, "same_kind"):
@@ -862,7 +862,7 @@ def _ensure_cmap(cmap, accept_multivariate=False):
862862
return cm.colormaps[cmap_name]
863863

864864

865-
def _ensure_multivariate_data(n_input, data):
865+
def _ensure_multivariate_data(data, n_input):
866866
"""
867867
Ensure that the data has dtype with n_input.
868868
Input data of shape (n_input, n, m) is converted to an array of shape

lib/matplotlib/image.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)