繁体   English   中英

极坐标中的 inset_axes

[英]Inset_axes in polar coordinates

I am using matplotlib.axes.Axes.inset_axes ( https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.axes.Axes.inset_axes.html ) to create an child axe of a an existing parent axe.

如何将其设置为极坐标? 我不能使用这个: Matplotlib inset polar plot as 'Axes' object has no property 'polar'

但是inset_axes只返回Axes对象而不是projections.polar.PolarAxes ..

来自 ImportanceOfBeingErnest 的评论:

只需使用mpl_toolkits.axes_grid1.inset_locator.inset_axes()代替参数axes_class = matplotlib.projections.get_projection_class('polar')

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM