fix to plot scaling