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

z-order of gridlines #112

Open
hemisemidemipresent opened this issue Nov 12, 2024 · 2 comments
Open

z-order of gridlines #112

hemisemidemipresent opened this issue Nov 12, 2024 · 2 comments

Comments

@hemisemidemipresent
Copy link

hemisemidemipresent commented Nov 12, 2024

Describe the bug
Despite the gridlines.line.zorder being lower than that of the stars, the gridlines are still above the star

To Reproduce

from starplot import Star, DSO, MapPlot, Projection
from starplot.styles import PlotStyle, PolygonStyle, extensions

style = PlotStyle().extend(
    extensions.BLUE_LIGHT,
    extensions.MAP,
)
p = MapPlot(
    projection=Projection.STEREO_NORTH,
    dec_min=75,
    dec_max=90,
    style=style,
    resolution=4000,
    hide_colliding_labels=False
)
p.gridlines()

p.stars(
    where=[Star.magnitude < 6],
    where_labels=[ Star.magnitude == 999],
    bayer_labels=True
)

p.export("test.png", padding=0.2, transparent=True)

Expected behavior
The gridlines should be below the star, but they are above the star
Screenshots
Polaris has gridlines on it
test

Environment Details (please complete the following information):

  • Starplot version: 0.12.1
  • Python version: 3.11.8
  • Matplotlib version: 3.9.2
@steveberardi
Copy link
Owner

Which version of cartopy are you using? I've noticed this behavior with versions 0.23 or later, but not with version 0.22. So, I suspect this may be a bug with cartopy, but haven't fully investigated to confirm.

@hemisemidemipresent
Copy link
Author

currently mine is on 0.23.0

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

No branches or pull requests

2 participants