File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 3131
3232def 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
Original file line number Diff line number Diff line change 3131
3232def 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 ()
You can’t perform that action at this time.
0 commit comments