# create and plot a 1-d histogram from scratch
from marvin.utils.plot.scatter import hist
output = hist(x, bins=20)