Plot the graph for several values of n