Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
Added alias color for c in axes.scatter
  • Loading branch information
yangineer committed Feb 15, 2015
commit ea794c9f88160177039fc175d1efe25a179558b9
4 changes: 4 additions & 0 deletions lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3598,6 +3598,10 @@ def scatter(self, x, y, s=20, c='b', marker='o', cmap=None, norm=None,

s = np.ma.ravel(s) # This doesn't have to match x, y in size.

color = kwargs.pop('color', None)
if color is not None:
c = color

c_is_stringy = is_string_like(c) or is_sequence_of_strings(c)
if not c_is_stringy:
c = np.asanyarray(c)
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading