Plot probability density function of a scalar variable.
Z (node or function) – Stochastic node or log pdf function
x (array) – Grid points