starplot
starplot copied to clipboard
Constellation Labels not being inside the constellation boundaries
Sometimes, constellation labels will be awkwardly to a side (e.g. Hercules, Scutum, Corona Australis) and in some cases, just completely out of the boundary (e.g. Sagitta)
Also could there be labels for both Serpens (either duplicate Serpens labels or have one for Serpens cauda/caput)
image:
code:
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.MILLER, # specify a non-perspective projection
ra_min=14, # limit the map to a specific area
ra_max=22,
dec_min=-45,
dec_max=65,
style=style,
resolution=4000,
hide_colliding_labels=False
)
p.gridlines() # add gridlines
p.stars(
where=[Star.magnitude < 6],
where_labels=[ (Star.magnitude < 3)],
bayer_labels=True
)
p.constellations()
p.constellation_borders()
p.milky_way()
p.celestial_equator()
p.ecliptic()
p.export("test.png", padding=0.2, transparent=True)
Environment Details:
- Starplot version: v0.11.4
- Python version: 3.11.8
- Matplotlib version: 3.9.2