Skip to content

Commit be82eef

Browse files
authored
fix zenith plot star size calc (#29)
1 parent 3756035 commit be82eef

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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.3.1"
3+
__version__ = "0.3.2"
44

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

src/starplot/zenith.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,10 @@ def _plot_stars(self):
165165
for m in stardata["magnitude"][bright_stars]:
166166
if m < 2:
167167
sizes.append((8 - m) ** 2.56 * (self._size_multiplier**2))
168+
elif m < 8:
169+
sizes.append((8 - m) ** 1.38 * (self._size_multiplier**2))
168170
else:
169-
# sizes.append((1 + self.limiting_magnitude - m) ** 2 * self._size_multiplier)
170-
sizes.append((8 - m) ** 1.36 * (self._size_multiplier**2))
171+
sizes.append(self._size_multiplier**2)
171172

172173
# Draw stars
173174
if self.style.star.marker.visible:

0 commit comments

Comments
 (0)