To correct the weird line in cosine by changing max and min step time to see the usual view of waveform.