@@ -3878,15 +3878,15 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
3878
3878
except ValueError :
3879
3879
raise ValueError ("'color' kwarg must be an mpl color"
3880
3880
" spec or sequence of color specs.\n "
3881
- "For a sequence of values to be"
3882
- " color-mapped, use the 'c' kwarg instead." )
3881
+ "For a sequence of values to be color-mapped, "
3882
+ " use the 'c' argument instead." )
3883
3883
if edgecolors is None :
3884
3884
edgecolors = co
3885
3885
if facecolors is None :
3886
3886
facecolors = co
3887
3887
if c is not None :
3888
- raise ValueError ("Supply a 'c' kwarg or a 'color' kwarg "
3889
- " but not both; they differ but"
3888
+ raise ValueError ("Supply a 'c' argument or a 'color'"
3889
+ " kwarg but not both; they differ but"
3890
3890
" their functionalities overlap." )
3891
3891
if c is None :
3892
3892
if facecolors is not None :
@@ -3943,7 +3943,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
3943
3943
else :
3944
3944
if c_array .shape in ((3 ,), (4 ,)):
3945
3945
_log .warning (
3946
- "'c' kwarg looks like a ** single** numeric RGB or "
3946
+ "'c' argument looks like a single numeric RGB or "
3947
3947
"RGBA sequence, which should be avoided as value-"
3948
3948
"mapping will have precedence in case its length "
3949
3949
"matches with 'x' & 'y'. Please use a 2-D array "
@@ -3968,15 +3968,16 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
3968
3968
except ValueError :
3969
3969
if not valid_shape : # but at least one conversion succeeded.
3970
3970
raise ValueError (
3971
- "'c' kwarg has {nc} elements, which is not acceptable "
3972
- "for use with 'x' with size {xs}, 'y' with size {ys}."
3971
+ "'c' argument has {nc} elements, which is not "
3972
+ "acceptable for use with 'x' with size {xs}, "
3973
+ "'y' with size {ys}."
3973
3974
.format (nc = n_elem , xs = x .size , ys = y .size )
3974
3975
)
3975
3976
# Both the mapping *and* the RGBA conversion failed: pretty
3976
3977
# severe failure => one may appreciate a verbose feedback.
3977
3978
raise ValueError (
3978
- "'c' kwarg must either be valid as mpl color(s) or "
3979
- "as numbers to be mapped to colors. "
3979
+ "'c' argument must either be valid as mpl color(s) "
3980
+ "or as numbers to be mapped to colors. "
3980
3981
"Here c = {}." # <- beware, could be long depending on c.
3981
3982
.format (c )
3982
3983
)
0 commit comments