probmods / webppl-viz

Visualization for WebPPL
http://probmods.github.io/webppl-viz/
Other
14 stars 9 forks source link

xLabel-option ignored ? #71

Closed CMoebus closed 7 years ago

CMoebus commented 7 years ago

the label shown was "Value" but not "X". Here's the code:

//a complex function, that specifies a complex sampling process:
var foo = function(){gaussian(0,1) + gaussian(0,1)}
//make the marginal distributions on return values explicit:
var d = Infer({method: 'forward', samples: 250000}, foo)
//now we can use d as we would any other distribution:
print( sample(d) )
viz.density(d, {xLabel: 'X'})
longouyang commented 7 years ago

Did you mean to close this issue?