mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-03 16:52:39 +02:00
[latent plots] legend was always plotted
This commit is contained in:
parent
e73fcac521
commit
218616154c
1 changed files with 1 additions and 1 deletions
|
|
@ -256,7 +256,7 @@ def plot_latent(self, labels=None, which_indices=None,
|
|||
xlabel='latent dimension %i' % input_1, ylabel='latent dimension %i' % input_2, **imshow_kwargs)
|
||||
if (labels is not None) and legend:
|
||||
legend = find_best_layout_for_subplots(len(np.unique(labels)))[1]
|
||||
else:
|
||||
elif legend:
|
||||
labels = np.ones(self.num_data)
|
||||
legend = False
|
||||
scatters = _plot_latent_scatter(canvas, X, which_indices, labels, marker, num_samples, projection='2d', **scatter_kwargs or {})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue