probmods / webppl-viz

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

Tick label on y axis isn't exactly zero #72

Open null-a opened 7 years ago

null-a commented 7 years ago

I'm seeing this fairly often (1 in 5?) on a model I've been playing with:

plot

I'm happy to dig into this more if that would be helpful.

longouyang commented 7 years ago

This might be the smart number formatter or Javascript's weird number system. Hard to tell right now.

When you get a chance, could you play around with different seeds to reproduce this and then send the model + seed my way?

null-a commented 7 years ago

Sure, seems like this reproduces it on current webppl.org:

util.seedRNG(1481745082696)
viz.auto(MH(function() {
  var x = gaussian(0,1)
  var y = gaussian(x,.1)
  return {x, y}
},100))