From 1099739e8255f5960e32aaf36b7ae3cc6f41dddd Mon Sep 17 00:00:00 2001 From: Daniel Kleine <53251018+d-kleine@users.noreply.github.com> Date: Wed, 6 Nov 2024 23:27:43 +0100 Subject: [PATCH] start x-axis at the origin of coordinates --- mlxtend/evaluate/time_series.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mlxtend/evaluate/time_series.py b/mlxtend/evaluate/time_series.py index 53262856f..df8dfb8e1 100644 --- a/mlxtend/evaluate/time_series.py +++ b/mlxtend/evaluate/time_series.py @@ -308,6 +308,7 @@ def plot_split_indices(cv, cv_args, X, y, groups, n_splits, image_file_path=None ) ax.set_title("{}\n{}".format(type(cv).__name__, cv_args), fontsize=15) + ax.set_xlim(0, len(X)) ax.xaxis.set_major_locator(MaxNLocator(integer=True)) ax.set_xlabel(xlabel="Sample index", fontsize=13) ax.set_ylabel(ylabel="CV iteration", fontsize=13)