Plotting graph.