Fix to plot for nun-integer ranges