Skip to content

Commit

Permalink
fix scree plot x limits properly this time
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgigante committed Sep 28, 2019
1 parent d52b379 commit 9fa7d40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scprep/plot/scree.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9fa7d40

Please sign in to comment.