starplot icon indicating copy to clipboard operation
starplot copied to clipboard

Constellation Labels not being inside the constellation boundaries

Open hemisemidemipresent opened this issue 5 months ago • 3 comments

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:

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

hemisemidemipresent avatar Sep 05 '24 03:09 hemisemidemipresent