probmods / webppl-viz

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

density doesn't use the key for object values #47

Closed longouyang closed 8 years ago

longouyang commented 8 years ago
var dist = MH(
  function() { 
    var p = uniform(0,1);
    return {foo: p};
  }, 1000)

viz.density(dist, {numBins: 10})

the x axis should be labeled foo in this case, not Value