Fixed the x axis scaling not being retained when the plot is redrawn