matplotlib / matplotlib/basemap

Celestial meridian labels incorrect for eck4 projection

未关闭
#283 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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)
```

![bug2](https://cloud.githubusercontent.com/assets/185007/14036616/0b645712-f1f8-11e5-8790-816d1d11b602.png)
When celestial is True, the meridians are correctly flipped, but the labels no longer match their positions:

```
label_bug(celestial=True)
```

![bug1](https://cloud.githubusercontent.com/assets/185007/14036620/106d7f54-f1f8-11e5-9a81-bbb6c471550e.png)
If anyone knows a workaround until this is fixed, please let me know. Thanks!

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从提供的 label_bug 复现和 Basemap.drawmeridians 开始,针对 eck4 投影比较 celestial=False 和 celestial=True。跟踪子午线位置和标签是如何转换的,然后使用该示例验证在两种情况下标签都与显示的子午线匹配。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
data-visualization
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。