Plotting: ValueError: x and y must have same first dimension

  • The length of the x and y arguments sent to plot, must be the same.
  • You are plotting 6 temperature points versus 12 month points. You have to add 6 more temperature values, or only have 6 months (e.g. range(1, 13, 2)).

Leave a Comment