Using line for plotting