File tree 11 files changed +20
-19
lines changed
11 files changed +20
-19
lines changed Original file line number Diff line number Diff line change 4
4
![ PyPI] ( https://img.shields.io/pypi/v/starplot?style=for-the-badge&color=85C0C1 )
5
5
![ License] ( https://img.shields.io/github/license/steveberardi/starplot?style=for-the-badge&color=A485C1 )
6
6
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 .
8
8
9
9
- ⭐ ** 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
11
11
- 🔭 ** Optic Plots** - simulates what you'll see through an optic (e.g. binoculars, telescope) from a time/location
12
12
- 🪐 ** Planets and Deep Sky Objects (DSOs)**
13
13
- 🎨 ** Custom Styles** - for all objects
Original file line number Diff line number Diff line change 1
1
---
2
- title : Star Charts and Maps in Python
2
+ title : Star Charts and Maps of the Sky in Python
3
3
---
4
4
5
5
# Welcome to Starplot
@@ -9,7 +9,7 @@ title: Star Charts and Maps in Python
9
9
![ License] ( https://img.shields.io/github/license/steveberardi/starplot?style=for-the-badge&color=A485C1 )
10
10
![ GitHub Workflow Status] ( https://img.shields.io/github/actions/workflow/status/steveberardi/starplot/test.yml?style=for-the-badge&color=a2c185 )
11
11
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 .
13
13
{.text-subtitle}
14
14
15
15
- ⭐ ** Zenith Plots** - showing the stars from a specific time/location
Original file line number Diff line number Diff line change 68
68
p .marker (
69
69
ra = ra ,
70
70
dec = dec ,
71
- label = label ,
72
- legend_label = "Comet NEOWISE" ,
73
71
style = {
74
72
"marker" : {
75
73
"size" : 16 ,
87
85
"zorder" : 4096 ,
88
86
},
89
87
},
88
+ label = label ,
89
+ legend_label = "Comet NEOWISE" ,
90
90
)
91
91
92
92
p .gridlines (labels = False )
Original file line number Diff line number Diff line change 30
30
p .marker (
31
31
ra = 12.36 ,
32
32
dec = 25.85 ,
33
- label = "Mel 111" ,
34
33
style = {
35
34
"marker" : {
36
35
"size" : 28 ,
49
48
"font_alpha" : 0.8 ,
50
49
},
51
50
},
51
+ label = "Mel 111" ,
52
52
)
53
53
p .horizon ()
54
54
Original file line number Diff line number Diff line change @@ -91,7 +91,6 @@ def check_map_orion_extra():
91
91
mercator_base .marker (
92
92
ra = 4.5 ,
93
93
dec = 5 ,
94
- label = "hello worldzz label offset" ,
95
94
style = {
96
95
"marker" : {
97
96
"size" : 30 ,
@@ -104,6 +103,7 @@ def check_map_orion_extra():
104
103
"offset_y" : - 100 ,
105
104
},
106
105
},
106
+ label = "hello worldzz label offset" ,
107
107
legend_label = "hello legend" ,
108
108
)
109
109
mercator_base .circle (
Original file line number Diff line number Diff line change 1
1
"""Star charts and maps of the sky"""
2
2
3
- __version__ = "0.12.4 "
3
+ __version__ = "0.12.5 "
4
4
5
5
from .base import BasePlot # noqa: F401
6
6
from .map import MapPlot , Projection # noqa: F401
Original file line number Diff line number Diff line change @@ -395,8 +395,8 @@ def planets(
395
395
self .marker (
396
396
ra = p .ra ,
397
397
dec = p .dec ,
398
- label = label .upper () if label else None ,
399
398
style = style ,
399
+ label = label .upper () if label else None ,
400
400
legend_label = legend_label ,
401
401
)
402
402
@@ -450,8 +450,8 @@ def sun(
450
450
self .marker (
451
451
ra = s .ra ,
452
452
dec = s .dec ,
453
- label = label ,
454
453
style = style ,
454
+ label = label ,
455
455
legend_label = legend_label ,
456
456
)
457
457
@@ -692,8 +692,8 @@ def moon(
692
692
self .marker (
693
693
ra = m .ra ,
694
694
dec = m .dec ,
695
- label = label ,
696
695
style = style ,
696
+ label = label ,
697
697
legend_label = legend_label ,
698
698
)
699
699
Original file line number Diff line number Diff line change @@ -499,11 +499,11 @@ def zenith(
499
499
ra , dec , _ = zenith .radec ()
500
500
501
501
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 ,
507
507
)
508
508
509
509
@use_style (PathStyle , "horizon" )
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ def __init__(
39
39
) -> None :
40
40
super ().__init__ (ra , dec )
41
41
self .iau_id = iau_id .lower ()
42
+ self .constellation_id = self .iau_id # override from super()
42
43
self .name = name
43
44
self .boundary = boundary
44
45
Original file line number Diff line number Diff line change @@ -229,8 +229,8 @@ def dsos(
229
229
self .marker (
230
230
ra = ra / 15 ,
231
231
dec = dec ,
232
- label = label ,
233
232
style = style ,
233
+ label = label ,
234
234
skip_bounds_check = True ,
235
235
)
236
236
Original file line number Diff line number Diff line change 40
40
p .marker (
41
41
ra = 12.36 ,
42
42
dec = 25.85 ,
43
- label = "Mel 111" ,
44
43
style = {
45
44
"marker" : {
46
45
"size" : 28 ,
57
56
"font_alpha" : 0.8 ,
58
57
},
59
58
},
59
+ label = "Mel 111" ,
60
60
)
61
61
p .horizon ()
62
62
You can’t perform that action at this time.
0 commit comments