matplotlib / matplotlib/basemap
Celestial meridian labels incorrect for eck4 projection
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 817
- Forks
- 395
- PR merge metrics
- No merged PRs in 30d
Description
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!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied label_bug reproduction and Basemap.drawmeridians, comparing celestial=False and celestial=True for the eck4 projection. Trace how meridian positions and labels are transformed, then verify that labels match their displayed meridians in both cases using the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100