You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何将mplstereonet赤平投影网格线间隔设为10度?

解决mplstereonet赤平投影网格间隔设置为10度的问题
  • 可以直接通过ax.grid()方法的graticule_spacing参数修改网格线间隔,将其设置为10即可实现10度间隔的网格。
  • 修改后的完整代码如下:
import pandas as pd
import mplstereonet as mpl

strike = [120,145,150]
dip = [30,44,72]

f, ax = mpl.subplots()
ax.pole(strike, dip)
# 设置网格间隔为10度
ax.grid(graticule_spacing=10)
ax._polar.set_position(ax.get_position())
  • 补充说明:mplstereonet的grid()方法默认graticule_spacing=30,所以默认显示30度间隔的网格,手动指定该参数为10就能得到10度间隔的网格效果。

内容的提问来源于stack exchange,提问作者raulindo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.29 19:47:05