Darren Dale wrote:
> On Saturday 11 August 2007 8:15:41 am Xavier Gnata wrote:
>   
>> Hi,
>>
>> Using pylab svn, the qt backend is broken.
>>
>> import pylab fails  :
>>
>> /usr/lib/python2.4/site-packages/matplotlib/backends/backend_qtagg.py
>>      11
>>      12 from backend_agg import FigureCanvasAgg
>> ---> 13 from backend_qt import qt, FigureManagerQT, FigureCanvasQT,\
>>      14      show, draw_if_interactive, backend_version, \
>>      15      NavigationToolbar2QT
>>
>> /usr/lib/python2.4/site-packages/matplotlib/backends/backend_qt.py
>>      15 from matplotlib.widgets import SubplotTool
>>      16
>> ---> 17 import qt
>>      18
>>      19 backend_version = "0.9.1"
>>
>> ImportError: No module named qt
>>     
>
> That means you dont have PyQt-3 installed on your machine.
>
>   
>> If I replace import qt by import PyQt4
>>     
>
> dont!
>
>   
>> , I get another error : 
>>     
>
> If you want to use PyQt4, you should set your backend to qt4agg instead of 
> qtagg.
>   
OK my matplotlibrc was out of date. Now it works but I have found 
another but playing with the sliders of the backend:
As the log is quite long, here are only the most relevant parts :

imshow(a)
Out[7]: <matplotlib.image.AxesImage instance at 0xb262a8cc>

(play with the sliders of the qt4agg backend)

In [8]: 
---------------------------------------------------------------------------
exceptions.ValueError                                    Python 2.4.4: 
/usr/bin/python
                                                   Mon Aug 13 00:58:56 2007
A problem occured executing Python code.  Here is the sequence of function
calls leading up to the error, with the most recent (innermost) call last.

/usr/lib/python2.4/site-packages/matplotlib/backends/backend_qt4.py in 
funcleft(self=<matplotlib.backends.backend_qt4.SubplotToolQt object>, 
val=900)

/usr/lib/python2.4/site-packages/matplotlib/figure.py in 
update(self=<matplotlib.figure.SubplotParams instance>, 
left=0.90000000000000002, bottom=None, right=None, top=None, 
wspace=None, hspace=None)
     71         self._update_this('top', top)
     72         self._update_this('wspace', wspace)
     73         self._update_this('hspace', hspace)
     74
     75         def reset():
     76             self.left = thisleft
     77             self.right = thisright
     78             self.top = thistop
     79             self.bottom = thisbottom
     80             self.wspace = thiswspace
     81             self.hspace = thishspace
     82
     83         if self.validate:
     84             if self.left>=self.right:
     85                 reset()
---> 86                 raise ValueError('left cannot be >= right')
        global ValueError = undefined
     87
     88             if self.bottom>=self.top:
     89                 reset()
     90                 raise ValueError('bottom cannot be >= top')
     91
     92
     93
     94     def _update_this(self, s, val):
     95         if val is None:
     96             val = getattr(self, s, None)
     97             if val is None:
     98                 key = 'figure.subplot.' + s
     99                 val = rcParams[key]
    100
    101         setattr(self, s, val)

ValueError: left cannot be >= right

**********************************************************************

Oops, IPython crashed. We do our best to make it stable, but...

It looks like that the ranges of the sliders are checked in a wrong way. 
It may be due to numerical rounding issues.

Xavier
....




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to