making xmin<xmax

change histogram definition so that xmim<xmax