Deutsch   English   Français   Italiano  
<87bky7x90g.fsf@universite-de-strasbourg.fr.invalid>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!aioe.org!Faqf6A55NG1s8DSVkh3L9A.user.46.165.242.75.POSTED!not-for-mail
From: Alain Ketterlin <alain@universite-de-strasbourg.fr.invalid>
Newsgroups: fr.comp.lang.python
Subject: Re: Warning matplotlib
Date: Tue, 15 Mar 2022 21:20:47 +0100
Organization: =?utf-8?Q?Universit=C3=A9?= de Strasbourg
Message-ID: <87bky7x90g.fsf@universite-de-strasbourg.fr.invalid>
References: <slrnt31qb5.6iog.lulu042@valentino.Rock-n-Roll.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: gioia.aioe.org; logging-data="30329"; posting-host="Faqf6A55NG1s8DSVkh3L9A.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux)
Cancel-Lock: sha1:KSvdeKgDxtStx/HxXIRhQqkqnjQ=
X-Notice: Filtered by postfilter v. 0.9.2
Bytes: 2417
Lines: 35

Lulu <lulu042@fry.fr.invalid> writes:

> (Re-)Bonjour,
>
> Il semble que je n'utilise pas correctement la fonction 'stem' de
> matplotlib. A l'ex=C3=A9cution ce Warning appara=C3=AEt :
> 8<-----------8<---------8<----------8<----------8<----------8<----------8<
> analyse_spectrale_original.py:52: MatplotlibDeprecationWarning:
> Passing the linefmt parameter positionally is deprecated since
> Matplotlib 3.5; the parameter will become keyword-only two minor
> releases later.
>   markers,stemlines,base =3D stem([0, 1, 2, 3], [0.4, 1.0, 0.5, 0.2], 'r')
> 8<-----------8<---------8<----------8<----------8<----------8<----------8<
>
> La ligne 52 de mon script :
> markers,stemlines,base =3D stem([0, 1, 2, 3], [0.4, 1.0, 0.5, 0.2], 'r')

Oui, c'est dit dans le message d'erreur.

> J'ai googlis=C3=A9 ce warning et malgr=C3=A9 la consultation de divers me=
ssages
> sur python-forum.io ou stackoverflow.com, je ne comprends m=C3=AAme pas la
> signification de ce message (si ce n'est que bient=C3=B4t ce warning se
> transformera en erreur), ni les solutions propos=C3=A9es.

C'est curieux cette tendance a lire =C3=A0 peu pr=C3=A8s tout sauf la
documentation...

https://docs.python.org/3/glossary.html#term-argument
https://docs.python.org/3/reference/expressions.html#calls

Pour ton probl=C3=A8me : utilise linefmt=3D'r' au lieu de simplement 'r' (m=
ais
'r' n'a pas l'air d'=C3=AAtre une valeur correcte).

-- Alain.