Skip to content

Commit

Permalink
fix indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzschaefer committed Aug 11, 2021
1 parent 2279aab commit 5ff5dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scikitplot/decomposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def plot_pca_2d_projection(clf, X, y, title='PCA 2-D Projection',
alpha=0.8, lw=2, label=label, color=color)

if label_dots:
for dot in transformed_X[y == label, np.array(dimensions)[:, np.newaxis]]:
for dot in transformed_X[y == label][dimensions]:
ax.text(*dot, label)

if biplot:
Expand Down

0 comments on commit 5ff5dc5

Please sign in to comment.