Real Time Plotting Tool ( Oscilloscope )

How am i gonna re scale the plot for the Square Wave?