开发者

Individual point-sizing in Matplotlib?

开发者 https://www.devze.com 2023-04-11 07:10 出处:网络
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

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开发者_JAVA百科?


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:

Individual point-sizing in Matplotlib?

0

精彩评论

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

关注公众号