My goal is to save each plot after one pass of for loop. Here is what I've tried, but it shows the images overlapping. Below is my code:
import matplotlib.pyplot as plt
for i in range(10):
y = arr_df[i].flatten()
plt.title('Nitrat Graph')
plt.xlabel('X Axis')
plt.ylabel('Y Axis')
plt.plot(x_axis, y, color='blue')
plt.savefig(f'NO_{i}.png')