Waring with an animation

I am trying to run an animation, and I get this warning:

MatplotlibDeprecationWarning: Setting data with a non sequence type is deprecated since 3.7 and will be remove two minor releases later

  • LINE2[j].set_data(Po_X[i, j], Po_Z[i, j])*

I have no idea, what I should change to avoidproblems later.
Thanks a lot for any help!

Currently your x and y appear to be single values. Instead they should each be some sort of sequence such as lists

LINE2[j].set_data([Po_X[i, j]], [Po_Z[i, j]])

I did what you said, and all works cfine, no warnings.
Thanks a lot for your reply!!

1 Like