felipekitamura commited on
Commit
dfa856e
·
verified ·
1 Parent(s): 609f499

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def plot_reduced_data(reduced_data, labels, title):
22
  plt.figure(figsize=(10, 8))
23
  plt.scatter(reduced_data[:, 0], reduced_data[:, 1], alpha=0.6)
24
  for i, label in enumerate(labels):
25
- plt.annotate(label, (reduced_data[i, 0], reduced_data[i, 1]), fontsize=14)
26
  plt.title(title)
27
  # Data for the arrow 1
28
  start_point = (reduced_data[0, 0], reduced_data[0, 1]) # Starting point of the arrow
 
22
  plt.figure(figsize=(10, 8))
23
  plt.scatter(reduced_data[:, 0], reduced_data[:, 1], alpha=0.6)
24
  for i, label in enumerate(labels):
25
+ plt.annotate(" " + label, (reduced_data[i, 0], reduced_data[i, 1]), fontsize=14)
26
  plt.title(title)
27
  # Data for the arrow 1
28
  start_point = (reduced_data[0, 0], reduced_data[0, 1]) # Starting point of the arrow