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

Set gridline locators for all four axes of the plot #1758

Closed
icetianli opened this issue Mar 31, 2021 · 2 comments
Closed

Set gridline locators for all four axes of the plot #1758

icetianli opened this issue Mar 31, 2021 · 2 comments

Comments

@icetianli
Copy link

icetianli commented Mar 31, 2021

Description

Cartopy sometimes produces maps with mixed latitude and longitude gridline labels on the same side of the plot, like this one mentioned in #1560:

image

The right axis has an unexpected longitude label 16 E. This looks a bit messy, especially in terms of producing maps of publication quality.

One solution is the custom function written by @friedrichknuth in #1560, it solves the issue of mixed lat/lon labels by modifying the gridline locators of each axis. However, this would require writing extra function everytime plotting the figure.

I was wondering if it is possible for cartopy to implement additional gridline locator parameters for all four axes of the plot, such as x_top_locator, x_bottom_locator, y_left_locator, y_right_locator, instead of just xlocator and ylocator in the current version. This will allow users to specify locators where they would like to label the gridline for any axis.

@greglucas
Copy link
Contributor

There is some discussion in #1537 around how to draw the combinations x/y + sides. Feel free to chime in there with your thoughts and ideas.

@QuLogic
Copy link
Member

QuLogic commented Sep 10, 2021

Closed by #1537

@QuLogic QuLogic closed this as completed Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants