plot y=cosx for x = -2pi..4pi