From a288e42a064604c92d3293157c47ab79e0ac5c8f Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Thu, 8 Jun 2023 18:29:55 +0100 Subject: [PATCH] corrected pixel index for axis height (#2553) --- openmc/universe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/universe.py b/openmc/universe.py index 7195688292..458729d5cf 100644 --- a/openmc/universe.py +++ b/openmc/universe.py @@ -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: