From 681a3bc0d9608fe1c186062785f713b587aae51e Mon Sep 17 00:00:00 2001 From: Oriol Abril Date: Tue, 19 Mar 2019 04:35:45 +0100 Subject: [PATCH] Remove tight_layout (#619) * Remove tight_layout Fixes #608 * Forgot black formatting * Fix pylint --- arviz/plots/densityplot.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arviz/plots/densityplot.py b/arviz/plots/densityplot.py index a69ebcac9a..a961c01ab5 100644 --- a/arviz/plots/densityplot.py +++ b/arviz/plots/densityplot.py @@ -181,7 +181,7 @@ def plot_density( figsize, textsize, rows, cols ) - fig, ax = _create_axes_grid(length_plotters, rows, cols, figsize=figsize, squeeze=False) + _, ax = _create_axes_grid(length_plotters, rows, cols, figsize=figsize, squeeze=False) axis_map = {label: ax_ for label, ax_ in zip(all_labels, ax.flatten())} for m_idx, plotters in enumerate(to_plot): @@ -209,8 +209,6 @@ def plot_density( ax[0].plot([], label=label, c=colors[m_idx], markersize=markersize) ax[0].legend(fontsize=xt_labelsize) - fig.tight_layout() - return ax