Re: [matplotlib-devel] Unnecessary rerendering in wx/wxagg backends

2008-04-07 Thread Gregor Thalhammer
Here I attached diff files of my changes, compared to matplotlib-0.91.2 release. Gregor Thalhammer --- Kopie von backend_wx.py Mon Mar 31 10:28:22 2008 +++ backend_wx.py Sun Apr 6 10:23:09 2008 @@ -752,11 +752,14 @@ self._isRealized = False self._isConfigured = False

Re: [matplotlib-devel] Unnecessary rerendering in wx/wxagg backends

2008-04-07 Thread Gregor Thalhammer
I continued to work on this issue. Thanks for Chris Barker for pointing me into the right direction. I also had a look at other gui backends, and, among other, backend_qtagg.py seems to contain a proper (more or less, see other postings of Ted Drain) implementation of double buffered drawing th

Re: [matplotlib-devel] [Matplotlib-users] Double zooming with twinx

2008-04-07 Thread Manuel Metz
Paul Smith wrote: I'm plotting two curves in one subplot with twinx to allow different y scales. The script below is an example. When zooming in using zoom-to-rect on Tk's navigation toolbar2 (TkAgg is my backend) I think the x axis part of the zoom is happening twice. Rubberbanding the exampl

Re: [matplotlib-devel] [Matplotlib-users] Double zooming with twinx

2008-04-07 Thread Manuel Metz
Manuel Metz wrote: Paul Smith wrote: I'm plotting two curves in one subplot with twinx to allow different y scales. The script below is an example. When zooming in using zoom-to-rect on Tk's navigation toolbar2 (TkAgg is my backend) I think the x axis part of the zoom is happening twice. Rubbe

Re: [matplotlib-devel] improvements to color validation in rcsetup.py

2008-04-07 Thread Lev Givon
Received from Lev Givon on Sun, Apr 06, 2008 at 11:03:06PM EDT: > Received from Eric Firing on Sun, Apr 06, 2008 at 10:40:44PM EDT: > > Lev, > > > > Yes, you can post it here. It looks to me like just using > > colors.is_color_like() as a last step would do it. Is that the way you > > made the

Re: [matplotlib-devel] improvements to color validation in rcsetup.py

2008-04-07 Thread Eric Firing
Lev, I'm sorry, but you went a little too far in the new version; color validation in rcsetup still needs much of the original code, but it can use is_color_like as a helper--not a replacement. validate_color has to handle 'None', and tuples that come in as strings. I have committed a change t

Re: [matplotlib-devel] [Matplotlib-users] setting font weight via rc

2008-04-07 Thread Eric Firing
Lev, It looks to me like you have stumbled on either a bug or a feature--and I think it is the former--so I have moved this over to the devel list. The code for handling font defaults in FontProperties is tricky, and I am not sure I understand it correctly. It looks like it is setting up defa