fromstarplotimportMapPlot,Projection,callables,_fromstarplot.stylesimportPlotStyle,extensionsstyle=PlotStyle().extend(extensions.ANTIQUE,extensions.MAP,)p=MapPlot(projection=Projection.MILLER,ra_min=15.6*15,ra_max=19.8*15,dec_min=-45.2,dec_max=-3,style=style,resolution=4000,autoscale=True,)p.constellations()p.constellation_borders()p.stars(where=[_.magnitude<=3],size_fn=lambdad:callables.size_by_magnitude(d)*2,# make them 2x biggerstyle__marker__symbol="star_8",style__label__offset_x=8,style__label__offset_y=-8,style__label__border_width=2,style__label__border_color="#fefaed",)p.stars(where=[_.magnitude>3,_.magnitude<9,],bayer_labels=True,flamsteed_labels=True,catalog="big-sky-mag11",)p.nebula(where=[(_.magnitude.isnull())|(_.magnitude<12),],true_size=True,label_fn=lambdad:d.ic,)p.open_clusters(where=[(_.magnitude.isnull())|(_.magnitude<12),],true_size=False,label_fn=lambdad:d.ngc,)p.globular_clusters(where=[(_.magnitude.isnull())|(_.magnitude<12),],true_size=False,label_fn=lambdad:d.ngc,)p.ecliptic()p.celestial_equator()p.milky_way()p.constellation_labels()p.export("map_sagittarius.png",padding=0.08)