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

Commit 7fc99b5

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 d7a64a4 commit 7fc99b5

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
@@ -569,7 +569,7 @@ def set_array(self, A):
569569
self._A = None
570570
return
571571

572-
A = _ensure_multivariate_data(self.norm.n_input, A)
572+
A = _ensure_multivariate_data(A, self.norm.n_input)
573573

574574
A = cbook.safe_masked_invalid(A, copy=True)
575575
if not np.can_cast(A.dtype, float, "same_kind"):
@@ -849,7 +849,7 @@ def _ensure_cmap(cmap, accept_multivariate=False):
849849
return cm.colormaps[cmap_name]
850850

851851

852-
def _ensure_multivariate_data(n_input, data):
852+
def _ensure_multivariate_data(data, n_input):
853853
"""
854854
Ensure that the data has dtype with n_input.
855855
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)