我正在使用matplotlib.axes.Axes.inset_axes (https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.axes.Axes.inset_axes.html)创建现有父轴的子轴。
如何将其设置为极坐标?我不能使用这个:Matplotlib inset polar plot作为'Axes' object has no property 'polar'。
但是inset_axes只返回Axes对象,而不返回projections.polar.PolarAxes。
发布于 2019-11-06 23:48:40
来自ImportanceOfBeingErnest的评论:
只需使用带有参数axes_class = matplotlib.projections.get_projection_class('polar')的mpl_toolkits.axes_grid1.inset_locator.inset_axes()即可。
https://stackoverflow.com/questions/58595212
复制相似问题