corrected pixel index for axis height (#2553)

This commit is contained in:
Jonathan Shimwell 2023-06-08 18:29:55 +01:00 committed by GitHub
parent 7479a9022a
commit a288e42a06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -455,7 +455,7 @@ class Universe(UniverseBase):
axes.set_ylabel(ylabel)
params = fig.subplotpars
width = pixels[0]*px/(params.right - params.left)
height = pixels[0]*px/(params.top - params.bottom)
height = pixels[1]*px/(params.top - params.bottom)
fig.set_size_inches(width, height)
if outline: