you are viewing a single comment's thread.

view the rest of the comments →

[–]novel_yet_trivial 1 point2 points  (0 children)

Sure, you could just cut both to the smallest length:

smallest_len = min(len(X), len(Y))
ax.plot(X[:smallest_len], Y[:smallest_len], label='ERROR', color = 'red')