@@ -6276,8 +6276,8 @@ def pcolor(self, *args, shading=None, alpha=None, norm=None, cmap=None,
62766276 # If provided, _pcolorargs will check that X, Y and C have the same shape.
62776277 # Before this check, we need to convert C from shape (K, N, M), where K is
62786278 # the number of variates, to (N, M) with a data type with K fields.
6279- data = mcolorizer ._ensure_multivariate_data (colorizer_obj . norm . n_input ,
6280- args [ - 1 ] )
6279+ data = mcolorizer ._ensure_multivariate_data (args [ - 1 ] ,
6280+ colorizer_obj . norm . n_input )
62816281 args = (* args [:- 1 ], data )
62826282
62836283 X , Y , C , shading = self ._pcolorargs ('pcolor' , * args , shading = shading ,
@@ -6555,8 +6555,8 @@ def pcolormesh(self, *args, alpha=None, norm=None, cmap=None, vmin=None,
65556555 # If provided, _pcolorargs will check that X, Y and C have the same shape.
65566556 # Before this check, we need to convert C from shape (K, N, M), where K is
65576557 # the number of variates, to (N, M) with a data type with K fields.
6558- data = mcolorizer ._ensure_multivariate_data (colorizer_obj . norm . n_input ,
6559- args [ - 1 ] )
6558+ data = mcolorizer ._ensure_multivariate_data (args [ - 1 ] ,
6559+ colorizer_obj . norm . n_input )
65606560 args = (* args [:- 1 ], data )
65616561
65626562 X , Y , C , shading = self ._pcolorargs ('pcolormesh' , * args ,
0 commit comments