Commit 15306ab0 authored by Vigeesh Gangadharan's avatar Vigeesh Gangadharan
Browse files

set proper aspect

parent 78258156
......@@ -1077,7 +1077,7 @@ def create_map(
wcs = WCS(header)
# set the figure size
aspect_ratio = data.shape[0] / data.shape[1]
aspect_ratio = (data.shape[0]*wcs.wcs.cdelt[0])/ (data.shape[1]*wcs.wcs.cdelt[1])
shape_inches = (max([8 / aspect_ratio + 0.5, 3]) + 1.0, 8)
fig = plt.figure(figsize=shape_inches, dpi=dpi, constrained_layout=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment