Matplotlib散点图中的部分填充圆圈
我目前正在尝试在Matplotlib散点图中绘制一个部分填充的圆圈。 “ nofollow noreferrer”>半填充或空圆圈。 我想要的是类似于以下图像的内容:
在这里,我希望能够控制它,例如,第2-6节以特定的标记显示,而其他标记则显示不同的范围。
Matplotlib是否支持这样的东西?我知道我可能需要将圆圈分为12个部分并为它们分配特定的颜色,但我不知道该怎么做。
I am currently trying to plot a partially filled circle in the matplotlib scatter plot.
The marker fill styles on the official documentation offers only half-filled or empty circles.
What I want is something similar to the following image:
Here I want to be able to control that, e.g., only the section 2-6 show up in a specific marker, while other markers show different ranges.
Does matplotlib support something like this? I understand that I probably need to partition the circle into 12 sections and assign them a specific color, but I don't know how to do that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这里,您需要一个标记所需的代码,然后仅在X0,Y0上迭代,并用白色作为颜色作为所希望的“消失”段。
在这里,由此产生的情节:

Here the code you need for one marker, then just iterate over x0, y0 and use white as color for the wished "vanishing" segments.
Here the resulting plot:
