While saving the data I named it as āFilename_%d.csvā%n so the filenames were coming properly with different n values however all the files had the same data at timestep = 0. idk why
It works. Initially it said āname āplotOverLine1ā is not definedā so i just defined it earlier before the loop and it works perfectly. Thanks a lot