matplotlib.pyplot.scatter scatter plot structure and usage || Parameter Description


matplotlib.pyplot.scatter (x, y, s = None, c = None, marker = None, cmap = None, norm = None, vmin = None, vmax = None, alpha = None, linewidths = None, verts = None, edgecolors = None, *, data = None, ** kwargs)

function: function plotted scattergram embodiment.

Returns: paths: PathCollection

Parameter Description:

    X, Y: array_like, Shape (n-,), the form (n, 1) an array of

    s: scalar or array_like, shape ( n,), optional. Scalar or the form (n, 1) of the array. 1

    in square area marked in units of pounds, designated as one of the following forms:
        valued scalars: to draw all the same size markers.
        Row or column vector: each labeled with a different size. x, y and the corresponding element in sz determine the position and area of each marking. sz length must be equal to the length x and y.
        []: 36 using default pounds square area.

    c: color, sequence, or sequence of color, optional color, or color sequence

    marker color, is designated as one of the following forms:
        the RGB color ary number or name: draw all the same color marks.
        Three matrix of RGB terpolymer consisting of: using a different color for each marker. Each row matrix corresponding to the number of tag designating a color RGB triplet. The number of rows to be equal to the length x and y.
        Vector: using a different color for each marker, and mapping values in a linear manner to the color map the color of the current c. c must have a length equal to the length x and y . To change the coordinates of the area of the color chart, use the colormap function.   c for the list, they must pay special attention to the length c must be the x, y is equal to, or will be reported very strange mistake.  


    marker: MarkerStyle point style

    cmap: Colormap, optional, default: None. Referring specifically to: matplotlib.pyplot.cm structure and usage || arguments detailed.

    NORM: the Normalize, optional, default: None

    Vmin, Vmax: Scalar, optional, default: None

    Alpha: Scalar, optional, default: None

    transparency

    LineWidths: Scalar or array_like, optional, default: None

    edgecolors: Color or Sequence of Color, optional , default: 'face'

    parameters detailed listing
        marker optional parameters 

 

 

 


        c optional parameters

 

Guess you like

Origin www.cnblogs.com/hilnx/p/12546343.html