Skip to content

Commit 12226e7

Browse files
authored
v0.8.4 (#52)
* bump version * fix text styling
1 parent 90511d1 commit 12226e7

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

scripts/scratchpad.py

+15-9
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,27 @@ def create_map_orion():
4444
"num_columns": 1,
4545
"background_alpha": 1,
4646
},
47+
"dso_open_cluster": {
48+
"label": {
49+
"font_color": "red",
50+
"visible": True,
51+
}
52+
},
4753
},
4854
)
4955
# style.milky_way.visible = False
5056

5157
p = sp.MapPlot(
5258
# projection=Projection.MERCATOR,
5359
projection=Projection.STEREO_NORTH,
54-
# ra_min=3.6,
55-
# ra_max=7.8,
56-
# dec_min=-16,
57-
# dec_max=23.6,
58-
ra_min=0,
59-
ra_max=24,
60-
dec_min=40,
61-
dec_max=90,
60+
ra_min=3.6,
61+
ra_max=7.8,
62+
dec_min=-16,
63+
dec_max=23.6,
64+
# ra_min=0,
65+
# ra_max=24,
66+
# dec_min=40,
67+
# dec_max=90,
6268
limiting_magnitude=6.2,
6369
style=style,
6470
resolution=2600,
@@ -701,7 +707,7 @@ def create_map_scratch():
701707

702708
# create_zenith()
703709
# create_map_mercator()
704-
create_map_stereo_north()
710+
# create_map_stereo_north()
705711
# create_map_stereo_south()
706712
create_map_orion()
707713
# create_map_scratch()

src/starplot/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Star charts and maps"""
22

3-
__version__ = "0.8.3"
3+
__version__ = "0.8.4"
44

55
from .base import StarPlot # noqa: F401
66
from .zenith import ZenithPlot # noqa: F401

src/starplot/map.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,12 @@ def _plot_dsos(self):
751751
)
752752

753753
if style.label.visible:
754-
self._plot_text(ra, dec, d.name)
754+
self._plot_text(
755+
ra,
756+
dec,
757+
d.name,
758+
**style.label.matplot_kwargs(self._size_multiplier),
759+
)
755760

756761
else:
757762
# If no major axis, then just plot as a marker

0 commit comments

Comments
 (0)