mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-05 09:42:39 +02:00
[plotting] added samples plot
This commit is contained in:
parent
57c4306d92
commit
d7b5f45b71
7 changed files with 118 additions and 31 deletions
|
|
@ -52,5 +52,6 @@ yerrorbar = dict(ecolor=Tango.colorsHex['darkRed'], fmt='none', elinewidth=.5, a
|
|||
# GP plots
|
||||
meanplot_1d = dict(color=Tango.colorsHex['mediumBlue'], linewidth=2)
|
||||
meanplot_2d = dict(cmap='hot', linewidth=.5)
|
||||
samples_1d = dict(color=Tango.colorsHex['mediumBlue'], linewidth=.3)
|
||||
confidence_interval = dict(edgecolor=Tango.colorsHex['darkBlue'],linewidth=.5,facecolor=Tango.colorsHex['lightBlue'],alpha=.3)
|
||||
density = dict(facecolor=Tango.colorsHex['mediumBlue'],edgecolors='none')
|
||||
|
|
@ -100,7 +100,7 @@ class MatplotlibPlots(AbstractPlottingLibrary):
|
|||
ax = canvas
|
||||
plots = []
|
||||
if not 'alpha' in kwargs.keys():
|
||||
kwargs['alpha'] = 1./(len(percentiles))
|
||||
kwargs['alpha'] = 3./max(4, (len(percentiles)))
|
||||
|
||||
# pop where from kwargs
|
||||
where = kwargs.pop('where') if 'where' in kwargs else None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue