How to remove outline of circle marker when using pyplot.plot in matplotlib

前端 未结 3 1871
失恋的感觉
失恋的感觉 2020-12-25 11:25

I\'m producing a scatter plot using pyplot.plot (instead of scatter - I\'m having difficulties with the colormap)

I am plotting using the \'o\' marker to get a circl

3条回答
  •  抹茶落季
    2020-12-25 12:10

    This is outlined in matplotlib.axes.Axes.scatter documentation found at https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.scatter.html

    It specifies that line edge colors for scatter plot markers can be set with

     edgecolors : color or sequence of color, optional, default: ‘face’
     The edge color of the marker. Possible values:
    
     - ‘face’: The edge color will always be the same as the face color.
     - ‘none’: No patch boundary will be drawn.
     - A matplotib color.
    
     For non-filled markers, the edgecolors kwarg is ignored and forced to ‘face’ internally.
    

    The width of the line edges can be specified with

    `linewidths` : scalar or array_like, optional, default: None
    
    The linewidth of the marker edges.
    
    Note: The default edgecolors is ‘face’.
    

    You may want to change this as well. If None, defaults to rcParams lines.linewidth.

提交回复
热议问题