Skip to content

Commit cf91eda

Browse files
committed
Remove dpi
1 parent 2bd0935 commit cf91eda

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

scripts/glasgow_horizon.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131

3232
def make_horizon_plot(
3333
dt: Optional[datetime] = None,
34-
mag_limit: int = 5,
35-
resolution: int = 1600) -> bytes:
34+
mag_limit: int = 5) -> bytes:
3635
"""
3736
Generate a horizon star plot.
3837
@@ -41,7 +40,6 @@ def make_horizon_plot(
4140
the star plot
4241
- mag_limit: The magitude limit for stars displayed on
4342
the star plot.
44-
- resolution: image resolution
4543
4644
Returns: The image in bytes
4745
"""
@@ -91,7 +89,7 @@ def make_horizon_plot(
9189

9290
# Export to in-memory buffer
9391
buf = io.BytesIO()
94-
p.export(buf, format="png", dpi=resolution)
92+
p.export(buf, format="png")
9593
buf.seek(0)
9694

9795
return buf.getvalue() # return PNG bytes

scripts/glasgow_zenith.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131

3232
def make_zenith_plot(
3333
dt: Optional[datetime] = None,
34-
mag_limit: int = 5,
35-
resolution: int = 1600) -> bytes:
34+
mag_limit: int = 5) -> bytes:
3635
"""
3736
Generate a zenith star plot.
3837
@@ -41,7 +40,6 @@ def make_zenith_plot(
4140
the star plot
4241
- mag_limit: The magitude limit for stars displayed on
4342
the star plot.
44-
- resolution: image resolution
4543
4644
Returns: The image in bytes
4745
"""
@@ -80,7 +78,7 @@ def make_zenith_plot(
8078

8179
# Export to in-memory buffer
8280
buf = io.BytesIO()
83-
p.export(buf, format="png", dpi=resolution)
81+
p.export(buf, format="png")
8482
buf.seek(0)
8583

8684
return buf.getvalue()

0 commit comments

Comments
 (0)