Darren Dale wrote:
> On Tuesday 14 August 2007 09:14:54 am Xavier Gnata wrote:
>   
>> Darren Dale wrote:
>>     
>>> On Sunday 12 August 2007 07:05:38 pm Xavier Gnata wrote:
>>>       
>>>> 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 :
>>>>         
>>> [...]
>>>
>>>       
>>>> It looks like that the ranges of the sliders are checked in a wrong way.
>>>> It may be due to numerical rounding issues.
>>>>         
>>> Unfortunately I have my hands full at work, so I don't know when I will
>>> be able to look into this. I would need more information before I could
>>> start anyway: a simple script and a list of steps that reproduces the
>>> problem, and does it only occur with the qt4 backend.
>>>
>>> Darren
>>>       
>> Using Qt4Agg as backend :
>> import pylab
>> pylab.plot([1,2])
>> Then click on the "subplot configuration tool"
>> Move the "left" slider to the right end on the slider.
>> Python crashes because :
>>
>> ValueError: left cannot be >= right
>>
>> Using the TkAgg backend, I'm not able to reporduce the bug because it is
>> not possbile to move the sliders to get left>=right (so there is no bug
>> here :))
>>
>> I had a quick look to the code and it looks like it is quite simple to
>> fix that adding in backend_qt4.py a logic like:
>> if left>=right: left=right-right/1000.
>>
>> The main problem is that I'm not sure to add this fix at the best place
>> in the code.
>>     
>
> This should be fixed in svn 3709. Thank you for the report and the suggested 
> fix. In the future, please try to provide a little more context for your 
> patch, the file is 550 lines long.
>
> Darren
>   
It is fixed. Thanks.

Xavier
ps : I only provide developers with real unified diffs when I'm able to 
produce them ;)

-- 
############################################
Xavier Gnata
CRAL - Observatoire de Lyon
9, avenue Charles André
69561 Saint Genis Laval cedex
Phone: +33 4 78 86 85 28
Fax: +33 4 78 86 83 86
E-mail: [EMAIL PROTECTED]
############################################ 


-------------------------------------------------------------------------
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