@@ -3979,17 +3979,6 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
3979
3979
else :
3980
3980
try :
3981
3981
c_array = np .asanyarray (c ,dtype = float )
3982
- if c_array .ndim > 1 :
3983
- if cmap is None :
3984
- cmap = mcolors .BivariateColormap ()
3985
- if norm is None :
3986
- norm = mcolors .BivariateNorm ()
3987
- c_array = norm (c_array )
3988
- c_array [0 ]= c_array [0 ]* (cmap .N - 1 )
3989
- c_array [1 ]= c_array [1 ]* (cmap .N - 1 )
3990
- c_array = c_array .astype (int )
3991
- c_array = c_array [0 ]+ cmap .N * c_array [1 ]
3992
- norm = mcolors .NoNorm ()
3993
3982
if c_array .shape in xy_shape :
3994
3983
c = np .ma .ravel (c_array )
3995
3984
else :
@@ -4054,10 +4043,8 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
4054
4043
collection .update (kwargs )
4055
4044
4056
4045
if colors is None :
4057
- isNorm = isinstance (norm , (mcolors .Normalize ,mcolors .BivariateNorm ))
4058
- if norm is not None and not isNorm :
4059
- msg = "'norm' must be an instance of 'mcolors.Normalize' " \
4060
- "or 'mcolors.BivariateNorm'"
4046
+ if norm is not None and not isinstance (norm ,mcolors .Normalize ):
4047
+ msg = "'norm' must be an instance of 'mcolors.Normalize'"
4061
4048
raise ValueError (msg )
4062
4049
collection .set_array (np .asarray (c ))
4063
4050
collection .set_cmap (cmap )