Skip to content

Deprecate color keyword argument in scatter #4675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Deprecate color kwarg in scatter
  • Loading branch information
jhamrick committed Jul 13, 2015
commit 5f7edae88f1aa18ad81e052cc80e3eee00de4b34
5 changes: 5 additions & 0 deletions lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3672,6 +3672,11 @@ def scatter(self, x, y, s=20, c=None, marker='o', cmap=None, norm=None,
# since it isn't, I am giving it low priority.
co = kwargs.pop('color', None)
if co is not None:
msg = (
"The 'color' keyword argument to scatter is deprecated, "
"please use 'c' instead."
)
warnings.warn(msg, mplDeprecation, stacklevel=1)
if edgecolors is None:
edgecolors = co
if facecolors is None:
Expand Down