@@ -3804,20 +3804,21 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
3804
3804
verts = None , edgecolors = None ,
3805
3805
** kwargs ):
3806
3806
"""
3807
- Make a scatter plot of `x` vs `y` .
3807
+ Make a scatter plot of *x* vs *y* .
3808
3808
3809
- Marker size is scaled by `s` and marker color is mapped to `c` .
3809
+ Marker size is scaled by *s* and marker color is mapped to *c* .
3810
3810
3811
3811
Parameters
3812
3812
----------
3813
3813
x, y : array_like, shape (n, )
3814
3814
Input data
3815
3815
3816
3816
s : scalar or array_like, shape (n, ), optional
3817
- size in points^2. Default is `rcParams['lines.markersize'] ** 2`.
3817
+ Size in points**2.
3818
+ Default is ``rcParams['lines.markersize'] ** 2``.
3818
3819
3819
3820
c : color, sequence, or sequence of color, optional, default: 'b'
3820
- `c` can be a single color format string, or a sequence of color
3821
+ *c* can be a single color format string, or a sequence of color
3821
3822
specifications of length `N`, or a sequence of `N` numbers to be
3822
3823
mapped to colors using the `cmap` and `norm` specified via kwargs
3823
3824
(see below). Note that `c` should not be a single numeric RGB or
@@ -3828,48 +3829,48 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
3828
3829
3829
3830
marker : `~matplotlib.markers.MarkerStyle`, optional, default: 'o'
3830
3831
See `~matplotlib.markers` for more information on the different
3831
- styles of markers scatter supports. ` marker` can be either
3832
+ styles of markers scatter supports. * marker* can be either
3832
3833
an instance of the class or the text shorthand for a particular
3833
3834
marker.
3834
3835
3835
3836
cmap : `~matplotlib.colors.Colormap`, optional, default: None
3836
3837
A `~matplotlib.colors.Colormap` instance or registered name.
3837
- ` cmap` is only used if `c` is an array of floats. If None,
3838
- defaults to rc `image.cmap`.
3838
+ * cmap* is only used if *c* is an array of floats. If `` None`` ,
3839
+ defaults to rc `` image.cmap` `.
3839
3840
3840
3841
norm : `~matplotlib.colors.Normalize`, optional, default: None
3841
3842
A `~matplotlib.colors.Normalize` instance is used to scale
3842
- luminance data to 0, 1. ` norm` is only used if `c` is an array of
3843
- floats. If `None`, use the default :func:`normalize`.
3843
+ luminance data to 0, 1. * norm* is only used if *c* is an array of
3844
+ floats. If `` None` `, use the default :func:`normalize`.
3844
3845
3845
3846
vmin, vmax : scalar, optional, default: None
3846
- ` vmin` and ` vmax` are used in conjunction with ` norm` to normalize
3847
- luminance data. If either are `None`, the min and max of the
3848
- color array is used. Note if you pass a ` norm` instance, your
3849
- settings for ` vmin` and ` vmax` will be ignored.
3847
+ * vmin* and * vmax* are used in conjunction with * norm* to normalize
3848
+ luminance data. If either are `` None` `, the min and max of the
3849
+ color array is used. Note if you pass a * norm* instance, your
3850
+ settings for * vmin* and * vmax* will be ignored.
3850
3851
3851
3852
alpha : scalar, optional, default: None
3852
3853
The alpha blending value, between 0 (transparent) and 1 (opaque)
3853
3854
3854
3855
linewidths : scalar or array_like, optional, default: None
3855
- If None, defaults to (lines.linewidth,).
3856
+ If `` None`` , defaults to `` (lines.linewidth,)`` .
3856
3857
3857
3858
verts : sequence of (x, y), optional
3858
- If ` marker` is None, these vertices will be used to
3859
+ If * marker* is `` None`` , these vertices will be used to
3859
3860
construct the marker. The center of the marker is located
3860
3861
at (0,0) in normalized units. The overall marker is rescaled
3861
- by ``s`` .
3862
+ by *s* .
3862
3863
3863
3864
edgecolors : color or sequence of color, optional, default: None
3864
- If None, defaults to 'face'
3865
+ If `` None`` , defaults to 'face'.
3865
3866
3866
3867
If 'face', the edge color will always be the same as
3867
3868
the face color.
3868
3869
3869
- If it is 'none', the patch boundary will not
3870
+ If 'none', the patch boundary will not
3870
3871
be drawn.
3871
3872
3872
- For non-filled markers, the ` edgecolors` kwarg
3873
+ For non-filled markers, the * edgecolors* kwarg
3873
3874
is ignored and forced to 'face' internally.
3874
3875
3875
3876
Returns
@@ -3882,23 +3883,23 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
3882
3883
3883
3884
See Also
3884
3885
--------
3885
- plot : to plot scatter plots when markers are identical in size and
3886
- color
3886
+ plot : To plot scatter plots when markers are identical in size and
3887
+ color.
3887
3888
3888
3889
Notes
3889
3890
-----
3890
3891
3891
3892
* The `plot` function will be faster for scatterplots where markers
3892
3893
don't vary in size or color.
3893
3894
3894
- * Any or all of `x`, `y`, `s` , and `c` may be masked arrays, in which
3895
+ * Any or all of *x*, *y*, *s* , and *c* may be masked arrays, in which
3895
3896
case all masks will be combined and only unmasked points will be
3896
3897
plotted.
3897
3898
3898
- Fundamentally, scatter works with 1-D arrays; `x`, `y`, `s` , and `c`
3899
+ Fundamentally, scatter works with 1-D arrays; *x*, *y*, *s* , and *c*
3899
3900
may be input as 2-D arrays, but within scatter they will be
3900
- flattened. The exception is `c` , which will be flattened only if its
3901
- size matches the size of `x` and `y` .
3901
+ flattened. The exception is *c* , which will be flattened only if its
3902
+ size matches the size of *x* and *y* .
3902
3903
3903
3904
"""
3904
3905
0 commit comments