From af30ef235281e4f51a5571db5020e4303c753cd9 Mon Sep 17 00:00:00 2001 From: Kyler Brown Date: Thu, 10 Mar 2016 10:41:52 -0600 Subject: [PATCH] clarified color argument in scatter In the scatter function, color can be a single color, a sequence, or a sequence of colors. I've updated the description so this is clear in the first line. --- lib/matplotlib/axes/_axes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index f923c8ca0fe..b45572925ec 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -3725,7 +3725,7 @@ def scatter(self, x, y, s=20, c=None, marker='o', cmap=None, norm=None, **kwargs): """ Make a scatter plot of x vs y, where x and y are sequence like objects - of the same lengths. + of the same length. Parameters ---------- @@ -3735,7 +3735,7 @@ def scatter(self, x, y, s=20, c=None, marker='o', cmap=None, norm=None, s : scalar or array_like, shape (n, ), optional, default: 20 size in points^2. - c : color or sequence of color, optional, default : 'b' + c : color, sequence, or sequence of color, optional, default: 'b' `c` can be a single color format string, or a sequence of color specifications of length `N`, or a sequence of `N` numbers to be mapped to colors using the `cmap` and `norm` specified via kwargs