matplotlib / matplotlib/basemap
Celestial meridian labels incorrect for eck4 projection
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 817
- 派生
- 395
- PR 合并指标
- 30 天内没有已合并 PR
描述
I am testing the following eck4 meridian labeling example:
```
def label_bug(celestial=True, lon_0=65):
m = Basemap(projection='eck4', lon_0=lon_0, resolution=None, celestial=celestial)
m.drawmeridians([lon_0, lon_0 + 60], labels=[0,0,1,0], labelstyle='+/-')
m.drawmapboundary()
```
With normal coordinates, the labels appear where I expect them:
```
label_bug(celestial=False)
```

When celestial is True, the meridians are correctly flipped, but the labels no longer match their positions:
```
label_bug(celestial=True)
```

If anyone knows a workaround until this is fixed, please let me know. Thanks!
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从提供的 label_bug 复现和 Basemap.drawmeridians 开始,针对 eck4 投影比较 celestial=False 和 celestial=True。跟踪子午线位置和标签是如何转换的,然后使用该示例验证在两种情况下标签都与显示的子午线匹配。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100