Skip to content

Commit 8f442b4

Browse files
Bug fix in plotting_utils.py
1 parent 44fe72e commit 8f442b4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cobra/evaluation/plotting_utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ def plot_performance_curves(model_performance: pd.DataFrame,
112112
markersize=20, linewidth=3, label='AUC validation',
113113
color=colors["validation"])
114114
# Set x/yticks
115-
ax.set_xticks(np.arange(len(model_performance['last_added_predictor'])
116-
+ 1))
115+
ax.set_xticks(np.arange(len(model_performance['last_added_predictor'])))
117116
ax.set_xticklabels(model_performance['last_added_predictor'].tolist(),
118117
rotation=40, ha='right')
119118
ax.set_yticks(np.arange(0.5, highest_auc + 0.02, 0.05))

0 commit comments

Comments
 (0)