x = [1 2 5 6 3 .....]
n = len(x)//34
i = 0
while i < n*34:
fig, axs = plt.subplots(2)
axs[0].plot(x[i:34+i],y[i:34+i],x_l[i:34+i],y_l[i:34+i]) #knee
axs[1].plot(x_a[i:34+i],y_a[i:34+i],color = 'red') #ank
axs[1].plot(x_l_a[i:34+i],y_l_a[i:34+i],color = 'green')
axs[0].axis('off')
axs[1].axis('off')
plt.savefig('test')
i = i + 17
The code above will only save the last plot in my file, but I would like to generate and save the multiple plots for different values of i.
plt.savefig('test' + str(i))?