【问题标题】:set thetamin with polar scatter plot in python 2.7.13在 python 2.7.13 中使用极坐标散点图设置 thetamin
【发布时间】:2017-12-26 19:16:46
【问题描述】:

我想在这里重现这个情节:

https://matplotlib.org/gallery/pie_and_polar_charts/polar_scatter.html#scatter-plot-on-polar-axis-confined-to-a-sector

从那里准确复制代码。 但是,然后它给了我这个错误

Traceback(最近一次调用最后一次):文件“polar_scatter.py”,第 57 行, 在 ax.set_thetamin(45) AttributeError: 'PolarAxesSubplot' 对象没有属性 'set_thetamin'

我正在使用版本 2.7.12 |Anaconda 4.2.0 (x86_64)

提前致谢!

【问题讨论】:

    标签: python matplotlib polar-coordinates


    【解决方案1】:

    我使用 Matplotlib 2.1.1 运行了上面链接的示例,它运行得非常好。

    我很确定 ax.set_thetamin() 选项是在最近的更新中添加到 matplotlib 中的,所以我认为你想确保你有最新版本的 Matplotlib 可用。查看managing packages 上的 Anaconda 说明,了解如何操作。

    希望有帮助!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-10
      • 2023-03-19
      相关资源
      最近更新 更多