improved range and binning of plots