to plot the sequence