added nice scale to plot update function