Skip to content

Commit b6d6c02

Browse files
authored
v0.12.5 (#118)
* change order * fix constellation id * update
1 parent d519da2 commit b6d6c02

File tree

11 files changed

+20
-19
lines changed

11 files changed

+20
-19
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
![PyPI](https://img.shields.io/pypi/v/starplot?style=for-the-badge&color=85C0C1)
55
![License](https://img.shields.io/github/license/steveberardi/starplot?style=for-the-badge&color=A485C1)
66

7-
**Starplot** is a Python library for creating star charts and maps.
7+
**Starplot** is a Python library for creating star charts and maps of the sky.
88

99
-**Zenith Plots** - showing the stars from a specific time/location
10-
- 🗺️ **Map Plots** - including North/South polar and Mercator projections
10+
- 🗺️ **Map Plots** - including many map projections
1111
- 🔭 **Optic Plots** - simulates what you'll see through an optic (e.g. binoculars, telescope) from a time/location
1212
- 🪐 **Planets and Deep Sky Objects (DSOs)**
1313
- 🎨 **Custom Styles** - for all objects

docs/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Star Charts and Maps in Python
2+
title: Star Charts and Maps of the Sky in Python
33
---
44

55
# Welcome to Starplot
@@ -9,7 +9,7 @@ title: Star Charts and Maps in Python
99
![License](https://img.shields.io/github/license/steveberardi/starplot?style=for-the-badge&color=A485C1)
1010
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/steveberardi/starplot/test.yml?style=for-the-badge&color=a2c185)
1111

12-
Starplot is a Python library for creating star charts and maps.
12+
Starplot is a Python library for creating star charts and maps of the sky.
1313
{.text-subtitle}
1414

1515
-**Zenith Plots** - showing the stars from a specific time/location

examples/map_comet_neowise.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@
6868
p.marker(
6969
ra=ra,
7070
dec=dec,
71-
label=label,
72-
legend_label="Comet NEOWISE",
7371
style={
7472
"marker": {
7573
"size": 16,
@@ -87,6 +85,8 @@
8785
"zorder": 4096,
8886
},
8987
},
88+
label=label,
89+
legend_label="Comet NEOWISE",
9090
)
9191

9292
p.gridlines(labels=False)

examples/star_chart_detail.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
p.marker(
3131
ra=12.36,
3232
dec=25.85,
33-
label="Mel 111",
3433
style={
3534
"marker": {
3635
"size": 28,
@@ -49,6 +48,7 @@
4948
"font_alpha": 0.8,
5049
},
5150
},
51+
label="Mel 111",
5252
)
5353
p.horizon()
5454

hash_checks/map_checks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ def check_map_orion_extra():
9191
mercator_base.marker(
9292
ra=4.5,
9393
dec=5,
94-
label="hello worldzz label offset",
9594
style={
9695
"marker": {
9796
"size": 30,
@@ -104,6 +103,7 @@ def check_map_orion_extra():
104103
"offset_y": -100,
105104
},
106105
},
106+
label="hello worldzz label offset",
107107
legend_label="hello legend",
108108
)
109109
mercator_base.circle(

src/starplot/__init__.py

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

3-
__version__ = "0.12.4"
3+
__version__ = "0.12.5"
44

55
from .base import BasePlot # noqa: F401
66
from .map import MapPlot, Projection # noqa: F401

src/starplot/base.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,8 @@ def planets(
395395
self.marker(
396396
ra=p.ra,
397397
dec=p.dec,
398-
label=label.upper() if label else None,
399398
style=style,
399+
label=label.upper() if label else None,
400400
legend_label=legend_label,
401401
)
402402

@@ -450,8 +450,8 @@ def sun(
450450
self.marker(
451451
ra=s.ra,
452452
dec=s.dec,
453-
label=label,
454453
style=style,
454+
label=label,
455455
legend_label=legend_label,
456456
)
457457

@@ -692,8 +692,8 @@ def moon(
692692
self.marker(
693693
ra=m.ra,
694694
dec=m.dec,
695-
label=label,
696695
style=style,
696+
label=label,
697697
legend_label=legend_label,
698698
)
699699

src/starplot/map.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -499,11 +499,11 @@ def zenith(
499499
ra, dec, _ = zenith.radec()
500500

501501
self.marker(
502-
ra.hours,
503-
dec.degrees,
504-
label,
505-
style,
506-
legend_label,
502+
ra=ra.hours,
503+
dec=dec.degrees,
504+
style=style,
505+
label=label,
506+
legend_label=legend_label,
507507
)
508508

509509
@use_style(PathStyle, "horizon")

src/starplot/models/constellation.py

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def __init__(
3939
) -> None:
4040
super().__init__(ra, dec)
4141
self.iau_id = iau_id.lower()
42+
self.constellation_id = self.iau_id # override from super()
4243
self.name = name
4344
self.boundary = boundary
4445

src/starplot/plotters/dsos.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ def dsos(
229229
self.marker(
230230
ra=ra / 15,
231231
dec=dec,
232-
label=label,
233232
style=style,
233+
label=label,
234234
skip_bounds_check=True,
235235
)
236236

tutorial/tutorial_03.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
p.marker(
4141
ra=12.36,
4242
dec=25.85,
43-
label="Mel 111",
4443
style={
4544
"marker": {
4645
"size": 28,
@@ -57,6 +56,7 @@
5756
"font_alpha": 0.8,
5857
},
5958
},
59+
label="Mel 111",
6060
)
6161
p.horizon()
6262

0 commit comments

Comments
 (0)