Skip to content

Commit 7cda3b2

Browse files
committed
Fix issue with incorrect data aspect ratios
1 parent 2406a2a commit 7cda3b2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

proplot/gridspec.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,8 @@ def _auto_layout_aspect(self):
834834
ratio = 1
835835
elif isinstance(ratio, str):
836836
raise RuntimeError(f'Unknown aspect ratio mode {ratio!r}.')
837+
else:
838+
ratio = 1 / ratio
837839

838840
# Compare to current aspect
839841
xscale, yscale = ax.get_xscale(), ax.get_yscale()

0 commit comments

Comments
 (0)