mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-27 14:25:16 +02:00
fix: plotting
This commit is contained in:
parent
93a7c08892
commit
4f3047e035
2 changed files with 6 additions and 3 deletions
|
|
@ -268,7 +268,10 @@ def _plot_density(self, canvas, helper_data, helper_prediction, label, **kwargs)
|
|||
# 1D plotting:
|
||||
fills = []
|
||||
for d in range(mu.shape[1]):
|
||||
fills.append(pl().fill_gradient(canvas, Xgrid[:, free_dims[0]], [p[:,d] for p in percs], label=label, **kwargs))
|
||||
fills.append(pl().fill_gradient(
|
||||
canvas, Xgrid[:, free_dims[0]], [p[:,d] for p in percs],
|
||||
label=label, **kwargs)
|
||||
)
|
||||
return dict(gpdensity=fills)
|
||||
else:
|
||||
pass # Nothing to plot!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue