Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gridlines not plotted correctly with Mollweide and Orthographic projections #1443

Open
MarkWieczorek opened this issue Jan 19, 2020 · 0 comments · May be fixed by #1538
Open

Gridlines not plotted correctly with Mollweide and Orthographic projections #1443

MarkWieczorek opened this issue Jan 19, 2020 · 0 comments · May be fixed by #1538

Comments

@MarkWieczorek
Copy link
Contributor

MarkWieczorek commented Jan 19, 2020

Gridlines are not being plotted correctly with several projections, including Mollweide and Orthographic. The problem is that the gridlines do not continue all the way to pole, but simply stop at something like 85 degrees.

Here is some simple code to demonstrate the problem

fig = plt.figure()
ax = fig.add_subplot(111, projection=ccrs.Orthographic()
ax.set_title('Orthographic')

orthographic
mollweide

stefraynaud added a commit to stefraynaud/cartopy that referenced this issue Apr 27, 2020
@stefraynaud stefraynaud linked a pull request Apr 27, 2020 that will close this issue
stefraynaud added a commit to stefraynaud/cartopy that referenced this issue Apr 16, 2021
Fix SciTools#1443

Merge the old and the new algo for the axes domain estimate

The coordinates of the outline are simply added to the rasterised coordinates.

In addition, the rasterized coordinates are generated with a non-even number of ticks to make sure to catch the center when bounds are symetric.

Add gridliner_orthographic test

This tests Gridliner._axes_domain

Update figs due to new gridliner axes domain

Fix figure testing for crs

Fix tolerance for test_gridliner

Remove unneeded call to ravel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant