made plot fit with a read data file