Bonjour à tous,
En exécutant le code suivant :
j'obtiens le message d'erreur suivant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 import random from scitools.easyviz import * random.seed(42) N = 500 # no of samples x = range(N) y = [random.uniform(-1,1) for i in x] plot (x,y,'+',axis=[0,N-1,-1.2,1.2])
bien qu'ayant cherché sur GOOGLE je n'ai rien trouvé, pouvez vous m'aider ?
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
16
17
18
19
20
21
22
23
24 Message File Name Line Position Traceback <module> C:\Documents and Settings\jouclar\Bureau\plotrandom.py 7 plot C:\Python26\lib\site-packages\scitools\easyviz\common.py 3060 _replot C:\Python26\lib\site-packages\scitools\easyviz\matplotlib_.py 906 draw C:\Python26\lib\site-packages\matplotlib\pyplot.py 352 draw C:\Python26\lib\site-packages\matplotlib\backends\backend_tkagg.py 215 draw C:\Python26\lib\site-packages\matplotlib\backends\backend_agg.py 314 draw_wrapper C:\Python26\lib\site-packages\matplotlib\artist.py 46 draw C:\Python26\lib\site-packages\matplotlib\figure.py 773 draw_wrapper C:\Python26\lib\site-packages\matplotlib\artist.py 46 draw C:\Python26\lib\site-packages\matplotlib\axes.py 1735 draw_wrapper C:\Python26\lib\site-packages\matplotlib\artist.py 46 draw C:\Python26\lib\site-packages\matplotlib\axis.py 742 draw_wrapper C:\Python26\lib\site-packages\matplotlib\artist.py 46 draw C:\Python26\lib\site-packages\matplotlib\axis.py 196 draw C:\Python26\lib\site-packages\matplotlib\text.py 518 _get_layout C:\Python26\lib\site-packages\matplotlib\text.py 280 get_text_width_height_descent C:\Python26\lib\site-packages\matplotlib\backends\backend_agg.py 148 get_texmanager C:\Python26\lib\site-packages\matplotlib\backend_bases.py 374 <module> C:\Python26\lib\site-packages\matplotlib\texmanager.py 72 TexManager C:\Python26\lib\site-packages\matplotlib\texmanager.py 94 dvipng_hack_alpha C:\Python26\lib\site-packages\matplotlib\texmanager.py 68 RuntimeError: Could not obtain dvipng version
Merci
Partager