hist: check that at least two edges are specified