Bonjour,

J'ai un script en Python qui a pour role de générer un graphe dont les données proviennent d'un fichier log (le fichier contient 2000 lignes et deux colonnes). Toutes les libraires permettants une bonne execution du script ont été importées. Lors de l'exécution du script, je rencontre l'erreur ci-dessous :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
 
Warning (from warnings module):
  File "C:\Python34\lib\site-packages\matplotlib\pyplot.py", line 424
    max_open_warning, RuntimeWarning)
RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (`matplotlib.pyplot.figure`) are retained until explicitly closed and may consume too much memory. (To control this warning, see the rcParam `figure.max_open_warning`).
En vérifiant, le fichier C:\Python34\lib\site-packages\matplotlib\pyplot.py, il est correctement configuré comme l'indique le lien suivant : https://github.com/matplotlib/matplo...t_path=61e12c2

voici le bout de code correspondant à la partie rcParams de mon fichier C:\Python34\lib\site-packages\matplotlib\pyplot.py.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 
       max_open_warning = rcParams['figure.max_open_warning']
 
        if (max_open_warning >= 1 and
            len(allnums) >= max_open_warning):
            warnings.warn(
                "More than %d figures have been opened. Figures "
                "created through the pyplot interface "
                "(`matplotlib.pyplot.figure`) are retained until "
                "explicitly closed and may consume too much memory. "
                "(To control this warning, see the rcParam "
                "`figure.max_open_warning`)." %
                max_open_warning, RuntimeWarning)
 
        if get_backend().lower() == 'ps':
Si vous avez une idée de cette erreur, elle est la bienvenue.

D'avance merci !

Cordialement,

PythonNovices