hatmatrix
hatmatrix

Reputation: 44902

How to customize marker/symbol properties in matplotlib?

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 plotting? 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.

Upvotes: 3

Views: 1399

Answers (1)

J Spen
J Spen

Reputation: 2664

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

Upvotes: 3

Related Questions