From 55001794e8d0abe97a34df92d3c7d8de983b2e6c Mon Sep 17 00:00:00 2001 From: Thomas Heavey Date: Thu, 21 Jun 2018 14:51:52 -0400 Subject: [PATCH] always run `fig.tight_layout()` in fes_2d It was previously only run if the scale was also made, but it seems more logical to always do it (or provide a separate flag for it) --- paratemp/coordinate_analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paratemp/coordinate_analysis.py b/paratemp/coordinate_analysis.py index 7d13032..19e269d 100644 --- a/paratemp/coordinate_analysis.py +++ b/paratemp/coordinate_analysis.py @@ -467,7 +467,7 @@ def fes_2d(self, x, y, temp=None, ax=None, bins=None, ax.set_aspect('equal', 'box') if scale: fig.colorbar(contours, label='kcal / mol') - fig.tight_layout() + fig.tight_layout() return delta_g, (xmids, ymids), contours, fig, ax def update_num_frames(self, silent=False):