Plot error - x and y lengths differ

Can you provide a reproducible example so that we can see your datasets?