Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Individual point-sizing in Matplotlib?

I'd like to have non-uniform point sizes in matplotlib (set a size for each point). Is there a way to do this? I guess I could hack it by having a separate plot command (with markersize set) for each point, but that would be really annoying. Is there a more principled way?

like image 749
Big Dogg Avatar asked Oct 07 '11 19:10

Big Dogg


1 Answers

I just found out that you can use scatter for this:

  scatter(500:600,600:700,1:101);

where the format is: scatter(x,y,sizes,markerType)

Produces:

enter image description here

like image 69
Chris A. Avatar answered Oct 24 '22 22:10

Chris A.