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