probmods / webppl-viz

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

Hist leaves out x-axis values #54

Closed cscherrer closed 7 years ago

cscherrer commented 8 years ago

In the "Hiking with Stochastic Transitions" section of the PPAML summer school, viz.auto sometimes produces histograms like this: viz auto

"State" values are integers, so we'd (or at least I'd) expect in-between values to be included on the axis (even for zero counts).

longouyang commented 8 years ago

Thanks for the report.

Right now viz applies some simple heuristics to detect the type of a variable (categorical versus real).

Currently we don't have a good interface for giving hints about variables (e.g., type, bounds, support) but this is on my todo list.

longouyang commented 7 years ago

Fixed in 3430c6a -- we now treat integers as real numbers.

Eventually, we probably want to do some special things for integers, though.