IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Bibliothèques tierces Python Discussion :

psyco et matplotlib incompatibles


Sujet :

Bibliothèques tierces Python

  1. #1
    Membre régulier
    Profil pro
    Inscrit en
    Mars 2008
    Messages
    147
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2008
    Messages : 147
    Points : 88
    Points
    88
    Par défaut psyco et matplotlib incompatibles
    Bonjour

    Savez vous si pylab de matplotlib ou bien numpy ont des incompatibilités avec psyco.

    J'ai fait un test avec mon appli en cours c'est bien la présence de psyco qui perturbe l'exécution du code dans pylab...

    existe t-il une solution ?
    voici la série du problème
    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
    25
    26
    27
    28
    29
    30
    Traceback (most recent call last):
      File "c:\python26\lib\lib-tk\Tkinter.py", line 1410, in __call__
        return self.func(*args)
      File "c:\python26\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 245, in resize
        self.show()
      File "c:\python26\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 248, in draw
        FigureCanvasAgg.draw(self)
      File "c:\python26\lib\site-packages\matplotlib\backends\backend_agg.py", line 394, in draw
        self.figure.draw(self.renderer)
      File "c:\python26\lib\site-packages\matplotlib\artist.py", line 55, in draw_wrapper
        draw(artist, renderer, *args, **kwargs)
      File "c:\python26\lib\site-packages\matplotlib\figure.py", line 798, in draw
        func(*args)
      File "c:\python26\lib\site-packages\matplotlib\artist.py", line 55, in draw_wrapper
        draw(artist, renderer, *args, **kwargs)
      File "c:\python26\lib\site-packages\matplotlib\axes.py", line 1946, in draw
        a.draw(renderer)
      File "c:\python26\lib\site-packages\matplotlib\artist.py", line 55, in draw_wrapper
        draw(artist, renderer, *args, **kwargs)
      File "c:\python26\lib\site-packages\matplotlib\axis.py", line 1030, in draw
        self._update_label_position(ticklabelBoxes, ticklabelBoxes2)
      File "c:\python26\lib\site-packages\matplotlib\axis.py", line 1587, in _update_label_position
        bottom = self.axes.bbox.ymin
      File "c:\python26\lib\site-packages\matplotlib\transforms.py", line 297, in _get_ymin
        return min(self.get_points()[:, 1])
      File "c:\python26\lib\site-packages\psyco\builtin.py", line 75, in min
        return _min(*args)
      File "c:\python26\lib\site-packages\psyco\builtin.py", line 34, in _min
        if not iterable:
    ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

  2. #2
    Membre régulier
    Profil pro
    Inscrit en
    Mars 2008
    Messages
    147
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2008
    Messages : 147
    Points : 88
    Points
    88
    Par défaut
    bonjour

    la suite....vu sur
    http://permalink.gmane.org/gmane.com....general/23804

    je cite
    While testing Psyco V2 to see if it would offer any speed improvements I
    >> tried it with some applications using matplotlib. Exceptions were raised
    >> that were easily resolved by replacing calls to min() and max() with
    >> their numpy equivalents numpy.amin() and numpy.amax() in the matplotlib
    >> code.
    j'ai regardé dans les modules
    axis.py, axes.py, transforms.py,etc ...... il y a de très nombreux endroits où cette correction devrait avoir lieu.

    Je trouve cette opération assez périlleuse sur le principe.....

Discussions similaires

  1. [Javascript] Menu js incompatible FF + XHTML 1.0 trans..
    Par genova dans le forum Général JavaScript
    Réponses: 2
    Dernier message: 29/11/2004, 13h08
  2. [TFileStream] : LoadFromStream et read : incompatible ?
    Par jmdeffet dans le forum Langage
    Réponses: 4
    Dernier message: 18/11/2004, 10h30
  3. [eclipse3.0][EclipseUML Omondo 3RC3 studio]incompatibles ???
    Par crapboulba dans le forum Eclipse Java
    Réponses: 6
    Dernier message: 13/07/2004, 10h47
  4. [LG]Problême "types incompatibles"
    Par pierrOPSG dans le forum Langage
    Réponses: 7
    Dernier message: 23/04/2004, 21h34
  5. [Socket]Incompatible type ?
    Par Edouard Kaiser dans le forum Réseau
    Réponses: 30
    Dernier message: 21/02/2004, 20h58

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo