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'})
the label shown was "Value" but not "X". Here's the code: