for plotting data