marta-marta commited on
Commit
ef08db2
·
1 Parent(s): cf4f4b2

Updating T-SNE Plot

Browse files
Files changed (1) hide show
  1. Data_Plotting/Plot_TSNE.py +2 -2
Data_Plotting/Plot_TSNE.py CHANGED
@@ -28,7 +28,7 @@ def plot_dimensionality_reduction(x, y, label_set, title):
28
  if label_set[0].dtype == float:
29
  plt.scatter(x, y, c=label_set)
30
  cbar = plt.colorbar()
31
- cbar.set_label('Average Density', fontsize=20)
32
  print("using scatter")
33
  else:
34
  for label in set(label_set):
@@ -37,7 +37,7 @@ def plot_dimensionality_reduction(x, y, label_set, title):
37
 
38
  plt.legend(numpoints=1)
39
  plt.xlabel("Dimension 1")
40
- plt.ylabel("Dimension 2", fontsize=8)
41
  ########################################################################################################################
42
  """
43
  # Use for personal plotting
 
28
  if label_set[0].dtype == float:
29
  plt.scatter(x, y, c=label_set)
30
  cbar = plt.colorbar()
31
+ cbar.set_label('Average Density', fontsize=12)
32
  print("using scatter")
33
  else:
34
  for label in set(label_set):
 
37
 
38
  plt.legend(numpoints=1)
39
  plt.xlabel("Dimension 1")
40
+ plt.ylabel("Dimension 2")
41
  ########################################################################################################################
42
  """
43
  # Use for personal plotting