From 9fa7d40c523b401775d3582b85c85cc0595c978c Mon Sep 17 00:00:00 2001 From: Scott Gigante Date: Sat, 28 Sep 2019 14:17:34 -0400 Subject: [PATCH] fix scree plot x limits properly this time --- scprep/plot/scree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scprep/plot/scree.py b/scprep/plot/scree.py index e32e73b7..fc693798 100644 --- a/scprep/plot/scree.py +++ b/scprep/plot/scree.py @@ -62,7 +62,7 @@ def scree_plot(singular_values, cumulative=False, ax=None, figsize=None, label_axis(ax.xaxis, label=xlabel) label_axis(ax.yaxis, label=ylabel) ax.xaxis.set_major_locator(mpl.ticker.MaxNLocator(integer=True)) - ax.set_xlim(0.3, len(explained_variance) + 0.3) + ax.set_xlim(0.3, len(explained_variance) + 0.7) if show_fig: show(fig) if filename is not None: