在 Matplotlib 中将极轴添加到笛卡尔图
我已经在 Matplotlib 中绘制了极坐标等高线图,如这个问题中所述。这基本上是通过将极坐标转换为笛卡尔坐标,然后在笛卡尔坐标系中绘图来实现的。
但是,我希望能够在绘图上覆盖一组极坐标系轴 - 即 0、90、180 和 270 度的径向轴(从中心伸出),并在其上显示刻度不同点处的半径。
我完全不知道如何去做这件事,并且似乎在文档中找不到任何内容。有什么建议吗?
I have drawn a polar contour plot in Matplotlib as described in this question. This basically works by converting the polar co-ordinates to cartesian co-ordinates and then plotting in the cartesian co-ordinate system.
However, I want to be able to have a set of polar co-ordinate system axes overlain on the plot - that is, radial axes (sticking out from the centre) at 0, 90, 180 and 270 degrees, with ticks on them showing the radius at various points.
I have absolutely no idea how to go about doing this, and can't seem to find anything in documentation. Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)