read and plot data from file