@@ -3853,20 +3853,21 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
3853
3853
verts = None , edgecolors = None ,
3854
3854
** kwargs ):
3855
3855
"""
3856
- Make a scatter plot of `x` vs `y` .
3856
+ Make a scatter plot of *x* vs *y* .
3857
3857
3858
- Marker size is scaled by `s` and marker color is mapped to `c` .
3858
+ Marker size is scaled by *s* and marker color is mapped to *c* .
3859
3859
3860
3860
Parameters
3861
3861
----------
3862
3862
x, y : array_like, shape (n, )
3863
3863
Input data
3864
3864
3865
3865
s : scalar or array_like, shape (n, ), optional
3866
- size in points^2. Default is `rcParams['lines.markersize'] ** 2`.
3866
+ Size in points**2.
3867
+ Default is ``rcParams['lines.markersize'] ** 2``.
3867
3868
3868
3869
c : color, sequence, or sequence of color, optional, default: 'b'
3869
- `c` can be a single color format string, or a sequence of color
3870
+ *c* can be a single color format string, or a sequence of color
3870
3871
specifications of length `N`, or a sequence of `N` numbers to be
3871
3872
mapped to colors using the `cmap` and `norm` specified via kwargs
3872
3873
(see below). Note that `c` should not be a single numeric RGB or
@@ -3877,48 +3878,48 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
3877
3878
3878
3879
marker : `~matplotlib.markers.MarkerStyle`, optional, default: 'o'
3879
3880
See `~matplotlib.markers` for more information on the different
3880
- styles of markers scatter supports. ` marker` can be either
3881
+ styles of markers scatter supports. * marker* can be either
3881
3882
an instance of the class or the text shorthand for a particular
3882
3883
marker.
3883
3884
3884
3885
cmap : `~matplotlib.colors.Colormap`, optional, default: None
3885
3886
A `~matplotlib.colors.Colormap` instance or registered name.
3886
- ` cmap` is only used if `c` is an array of floats. If None,
3887
- defaults to rc `image.cmap`.
3887
+ * cmap* is only used if *c* is an array of floats. If `` None`` ,
3888
+ defaults to rc `` image.cmap` `.
3888
3889
3889
3890
norm : `~matplotlib.colors.Normalize`, optional, default: None
3890
3891
A `~matplotlib.colors.Normalize` instance is used to scale
3891
- luminance data to 0, 1. ` norm` is only used if `c` is an array of
3892
- floats. If `None`, use the default :func:`normalize `.
3892
+ luminance data to 0, 1. * norm* is only used if *c* is an array of
3893
+ floats. If `` None`` , use the default `.colors.Normalize `.
3893
3894
3894
3895
vmin, vmax : scalar, optional, default: None
3895
- ` vmin` and ` vmax` are used in conjunction with ` norm` to normalize
3896
- luminance data. If either are `None`, the min and max of the
3897
- color array is used. Note if you pass a ` norm` instance, your
3898
- settings for ` vmin` and ` vmax` will be ignored.
3896
+ * vmin* and * vmax* are used in conjunction with * norm* to normalize
3897
+ luminance data. If either are `` None` `, the min and max of the
3898
+ color array is used. Note if you pass a * norm* instance, your
3899
+ settings for * vmin* and * vmax* will be ignored.
3899
3900
3900
3901
alpha : scalar, optional, default: None
3901
3902
The alpha blending value, between 0 (transparent) and 1 (opaque)
3902
3903
3903
3904
linewidths : scalar or array_like, optional, default: None
3904
- If None, defaults to (lines.linewidth,).
3905
+ If `` None`` , defaults to `` (lines.linewidth,)`` .
3905
3906
3906
3907
verts : sequence of (x, y), optional
3907
- If ` marker` is None, these vertices will be used to
3908
+ If * marker* is `` None`` , these vertices will be used to
3908
3909
construct the marker. The center of the marker is located
3909
3910
at (0,0) in normalized units. The overall marker is rescaled
3910
- by ``s`` .
3911
+ by *s* .
3911
3912
3912
3913
edgecolors : color or sequence of color, optional, default: None
3913
- If None, defaults to 'face'
3914
+ If `` None`` , defaults to 'face'.
3914
3915
3915
3916
If 'face', the edge color will always be the same as
3916
3917
the face color.
3917
3918
3918
- If it is 'none', the patch boundary will not
3919
+ If 'none', the patch boundary will not
3919
3920
be drawn.
3920
3921
3921
- For non-filled markers, the ` edgecolors` kwarg
3922
+ For non-filled markers, the * edgecolors* kwarg
3922
3923
is ignored and forced to 'face' internally.
3923
3924
3924
3925
Returns
@@ -3931,23 +3932,23 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
3931
3932
3932
3933
See Also
3933
3934
--------
3934
- plot : to plot scatter plots when markers are identical in size and
3935
- color
3935
+ plot : To plot scatter plots when markers are identical in size and
3936
+ color.
3936
3937
3937
3938
Notes
3938
3939
-----
3939
3940
3940
3941
* The `plot` function will be faster for scatterplots where markers
3941
3942
don't vary in size or color.
3942
3943
3943
- * Any or all of `x`, `y`, `s` , and `c` may be masked arrays, in which
3944
+ * Any or all of *x*, *y*, *s* , and *c* may be masked arrays, in which
3944
3945
case all masks will be combined and only unmasked points will be
3945
3946
plotted.
3946
3947
3947
- Fundamentally, scatter works with 1-D arrays; `x`, `y`, `s` , and `c`
3948
+ Fundamentally, scatter works with 1-D arrays; *x*, *y*, *s* , and *c*
3948
3949
may be input as 2-D arrays, but within scatter they will be
3949
- flattened. The exception is `c` , which will be flattened only if its
3950
- size matches the size of `x` and `y` .
3950
+ flattened. The exception is *c* , which will be flattened only if its
3951
+ size matches the size of *x* and *y* .
3951
3952
3952
3953
"""
3953
3954
0 commit comments