Celestial meridian labels incorrect for eck4 projection

Open
#283 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

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.

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)

bug2
When celestial is True, the meridians are correctly flipped, but the labels no longer match their positions:

label_bug(celestial=True)

bug1
If anyone knows a workaround until this is fixed, please let me know. Thanks!

Dominant language
Python
Stars
817
Forks
395
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from matplotlib/basemap

All issues in matplotlib/basemap

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.