Old matplotlib animation now fails

Liste des GroupesRevenir à cl python 
Sujet : Old matplotlib animation now fails
De : martin.schoon (at) *nospam* gmail.com (Martin Schöön)
Groupes : comp.lang.python
Date : 15. Oct 2024, 22:16:41
Autres entêtes
Organisation : @ Home
Message-ID : <ln80t9Fj0i0U1@mid.individual.net>
User-Agent : slrn/1.0.3 (Linux)
Some years ago I created a Python program that reads GPS data and
creates an animation stored in an mp4 file. Not very elegant but it
worked. Not very original as it was based on the example found here:

https://shorturl.at/dTCZZ

Last time it worked was about a year ago. Since then I have moved to a
later version of Debian and Conda and as a consequence a later version
of Python 3 (now 3.12.2).

Now my code fails. I have downloaded the latest version of the example
and it also fails.

It is the second to last line that throws an error:

l.set_data(x0, y0)

The error messages drills down to something called
"/home/.../matplotlib/lines.py", line 1289, in set_xdata

and tells me 'x must be a sequence'

I have started to dig around in matplotlib's documentation but my
strategy is clearly wanting. I don't really know where to start
looking for information on how to correct my code. Hence, this
call for help.

Any ideas?

TIA

/Martin

Date Sujet#  Auteur
15 Oct 24 * Old matplotlib animation now fails14Martin Schöön
15 Oct 24 +* Re: Old matplotlib animation now fails10Stefan Ram
16 Oct 24 i`* Re: Old matplotlib animation now fails9Martin Schöön
16 Oct 24 i +* Re: Old matplotlib animation now fails2Stefan Ram
16 Oct 24 i i`- Re: Old matplotlib animation now fails1Martin Schöön
16 Oct 24 i `* Re: Old matplotlib animation now fails6rbowman
17 Oct 24 i  +* Re: Old matplotlib animation now fails3Chris Townley
17 Oct 24 i  i`* Re: Old matplotlib animation now fails2rbowman
17 Oct 24 i  i `- Re: Old matplotlib animation now fails (Posting On Python-List Prohibited)1Lawrence D'Oliveiro
17 Oct 24 i  +- Re: Old matplotlib animation now fails (Posting On Python-List Prohibited)1Lawrence D'Oliveiro
17 Oct 24 i  `- Re: Old matplotlib animation now fails1Stefan Ram
16 Oct 24 +- Re: Old matplotlib animation now fails (Posting On Python-List Prohibited)1Lawrence D'Oliveiro
16 Oct 24 `* Re: Old matplotlib animation now fails2MRAB
16 Oct 24  `- Re: Old matplotlib animation now fails1Martin Schöön

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal