Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
ae14watanabe committed May 29, 2020
1 parent d1df319 commit 6a4c7b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/models/unsupervised_kernel_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,17 +412,17 @@ def _draw_latent_space(self):
for z, noise, label in zip(self.Z, self.noise_label, self.label_data):
point_label = z + noise
text = self.ax_latent_space.text(point_label[0], point_label[1], label,
ha='center', va='bottom', color='black')
ha='center', va='bottom', color='black')
text.set_path_effects([path_effects.Stroke(linewidth=3, foreground='white'),
path_effects.Normal()])
else:
if self.index_data_label_shown is not None:
# point_label = self.Z[self.index_data_label_shown,:] + self.noise_label[self.index_data_label_shown,:]
# label = self.label_data[self.index_data_label_shown]
text = self.ax_latent_space.text(self.Z[self.index_data_label_shown, 0],
self.Z[self.index_data_label_shown, 1],
self.label_data[self.index_data_label_shown],
ha='center', va='bottom', color='black')
self.Z[self.index_data_label_shown, 1],
self.label_data[self.index_data_label_shown],
ha='center', va='bottom', color='black')
text.set_path_effects([path_effects.Stroke(linewidth=3, foreground='white'),
path_effects.Normal()]
)
Expand Down

0 comments on commit 6a4c7b4

Please sign in to comment.