Moved data conversion from the read script to the plot script.