probmods / webppl-viz

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

option yLabel is ignored #73

Open CMoebus opened 7 years ago

CMoebus commented 7 years ago

as a proof I submit this code snippet:

var nsamples = 1000;
var model = function() {
  var A = flip();
  var B = flip();
  var C = [A, B];
  return C;}
var product = Infer({method: 'enumerate', model: 'model'}, model)
viz.hist(product, {xLabel: '(A, B)', yLabel: 'P(A, B)'})
viz.hist(repeat(nsamples,model), {xLabel: '(A, B)', yLabel: 'P(A, B)'})