[英]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. 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.
How do I set it to polar coordinates?如何将其设置为极坐标? I can not use this: Matplotlib inset polar plot as
'Axes' object has no property 'polar'
.我不能使用这个: Matplotlib inset polar plot as
'Axes' object has no property 'polar'
。
But inset_axes
only returns Axes
objects and not projections.polar.PolarAxes
..但是
inset_axes
只返回Axes
对象而不是projections.polar.PolarAxes
..
From the comment of ImportanceOfBeingErnest:来自 ImportanceOfBeingErnest 的评论:
just use mpl_toolkits.axes_grid1.inset_locator.inset_axes()
instead, with the parameter axes_class = matplotlib.projections.get_projection_class('polar')
.只需使用
mpl_toolkits.axes_grid1.inset_locator.inset_axes()
代替参数axes_class = matplotlib.projections.get_projection_class('polar')
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.