Skip to content

Commit 6583bcb

Browse files
authored
Merge 97a5715 into e2bfd9b
2 parents e2bfd9b + 97a5715 commit 6583bcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csep/utils/plots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ def plot_basemap(basemap, extent, ax=None, coastline=True, borders=False, linec
584584
# Set plot aspect according to local longitude-latitude ratio in metric units
585585
# (only compatible with plain PlateCarree "projection")
586586
LATKM = 110.574 # length of a ° of latitude [km]; constant --> ignores Earth's flattening
587-
ax.set_aspect(111.320 / LATKM / numpy.cos(numpy.deg2rad(central_latitude)))
587+
ax.set_aspect(LATKM / (111.320 * numpy.cos(numpy.deg2rad(central_latitude))))
588588
else:
589589
fig = pyplot.figure()
590590
ax = fig.add_subplot(111, projection=projection)

0 commit comments

Comments
 (0)