开发者

How to customize marker/symbol properties in matplotlib?

开发者 https://www.devze.com 2023-04-13 10:07 出处:网络
Example command: prop = matplotlib.pyplot.scatter(x,y,s=s,c=c) dir(prop) shows set_edgecolor, set_edgecolors, set_linestyle, set_linestyles - why so many variations on the same thing?

Example command:

prop = matplotlib.pyplot.scatter(x,y,s=s,c=c)

dir(prop) shows set_edgecolor, set_edgecolors, set_linestyle, set_linestyles - why so many variations on the same thing?

Also, how do I remove the edgecolors? Setting values to None does nothing. And how do I change the marker size after the plo开发者_开发问答tting? There does not appear to be a markersize attribute that I can access...

Edit

If the symbols are generated through plyplot.plot, there is a markersize attribute to change it seems. But with pyplot.scatter, not present.


It'd give using 'none' a go to see if that solves your issue with edgecolor. That typically sets attributes to no color.

0

精彩评论

暂无评论...
验证码 换一张
取 消