plotting with the new data structure