I have a scatter diagram like the one shown in the figure and I want to join the points with segments, but not all, but in groups of a 5. That is, four segments that join the first 5 points, four segments that join the following 5 points and so ... are 120 points in total, so there would be 24 groups of 5.
This is the code that generated that graph:
plt.scatter(np.arange(1,121), mos[0:120])
plt.title('Imagen 1')
plt.ylabel('MOS')
plt.xlabel('Numero de Imagen')
plt.grid(True)
plt.tight_layout()
plt.show()
How do I add the segments?
Thank you very much already.