SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: John G. <jn...@eu...> - 2005年05月31日 10:48:41
I think this might be a matplotlib issue.
I've been having some refresh issues with matplotlib since switching to 
2.6. In particular I've noticed that if I put my mouse over the toolbar 
and let a tooltip pop up the canvas does not get repainted.
Up to now I'd been assuming this problem was isolated to me (I use 
ratpoison as a window manager, which can confuse some apps).
I've cc'ed the matplotlib list in case anyone can throw some light on this.
John
dimitri pater wrote:
> Hello,
> I upgraded to PyGTK 2.6 from 2.4 . Now, when I switch from page 2 on a 
> Gtk.Notebook back to page 1, page 1 still shows some elements from 
> page 2 (it is not refreshed, just some parts). Both pages contain 
> graphs created with Matplotlib. I never had problems like this with 2.4...
> Any clues somebody? If necessary, I will attach the source files.
>
> Best regards,
> Dimitri
>
>------------------------------------------------------------------------
>
>_______________________________________________
>pygtk mailing list py...@da...
>http://www.daa.com.au/mailman/listinfo/pygtk
>Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
> 
>
From: N. V. <mit...@we...> - 2005年06月01日 05:26:15
dimitri pater schrieb:
> Yes, this could could very well be a matplotlib issue. I will try to 
> do some tests, thanks for cc'ing it to the matplotlib list.
>
> Dimitri
>
> On 5/31/05, *John Gill* <jn...@eu... 
> <mailto:jn...@eu...>> wrote:
>
> I think this might be a matplotlib issue.
>
> I've been having some refresh issues with matplotlib since
> switching to 2.6. In particular I've noticed that if I put my
> mouse over the toolbar and let a tooltip pop up the canvas does
> not get repainted.
>
> Up to now I'd been assuming this problem was isolated to me (I use
> ratpoison as a window manager, which can confuse some apps).
>
> I've cc'ed the matplotlib list in case anyone can throw some light
> on this.
>
> John
>
> dimitri pater wrote:
>
>> Hello,
>> I upgraded to PyGTK 2.6 from 2.4 . Now, when I switch from page 2
>> on a Gtk.Notebook back to page 1, page 1 still shows some
>> elements from page 2 (it is not refreshed, just some parts). Both
>> pages contain graphs created with Matplotlib. I never had
>> problems like this with 2.4...
>> Any clues somebody? If necessary, I will attach the source files.
>>
>> Best regards,
>> Dimitri
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>pygtk mailing list 
>>py...@da... <mailto:py...@da...>
>>http://www.daa.com.au/mailman/listinfo/pygtk
>>Read the PyGTK FAQ: 
>>http://www.async.com.br/faq/pygtk/
>> 
>>
>
>
>
> -- 
> Please visit dimitri's website: www.serpia.com <http://www.serpia.com> 
I can confirm this (mis)behaviour with matplotlib 0.80 and gtk+/pygtk 
2.6. I had wanted to look into this matter, but didn't yet have time to 
do it. A simple guess would be that the expose-event is not handled 
properly by the GTK backend.
I noticed the problem when I put a menu-bar over a matplotlib GTK 
Canvas. When you leave an opened menu, the menu will not disappear.
Niklas.
From: N. V. <mit...@we...> - 2005年06月01日 09:41:09
[...]
>> On 5/31/05, *John Gill* <jn...@eu... 
>> <mailto:jn...@eu...>> wrote:
>>
>> I think this might be a matplotlib issue.
>>
>> I've been having some refresh issues with matplotlib since
>> switching to 2.6. In particular I've noticed that if I put my
>> mouse over the toolbar and let a tooltip pop up the canvas does
>> not get repainted.
>>
>> Up to now I'd been assuming this problem was isolated to me (I use
>> ratpoison as a window manager, which can confuse some apps).
>>
>> I've cc'ed the matplotlib list in case anyone can throw some light
>> on this.
>>
>> John
>>
[...]
> I can confirm this (mis)behaviour with matplotlib 0.80 and gtk+/pygtk 
> 2.6. I had wanted to look into this matter, but didn't yet have time 
> to do it. A simple guess would be that the expose-event is not 
> handled properly by the GTK backend.
>
> I noticed the problem when I put a menu-bar over a matplotlib GTK 
> Canvas. When you leave an opened menu, the menu will not disappear.
>
> Niklas.
>
I have started looking at the code and did not quite understand what I 
found:
backends/backend_gtk.py has a class FigureCanvasGTK. Its method 
'expose_event' is responsible for redrawing.
In the situation I described, when I leave an opened menu that overlaps 
the graph, the expose_event is properly called, but the widget is not 
redrawn. If DBL_BUFFER is set (which it is), the widget is only redrawn, 
if self._draw_pixmap is set to True. Of course, this variable is not set 
to True when GTK closes a menu but only when matplotlib requests a 
redraw. So, in conclusion, no redraw happens.
After consulting the PyGTK reference I tried to reactivate double 
buffering, which is turned of in the backend_gtk.py by the command
self.set_double_buffered(False)
I wonder why you set this? Do you want to provide your own double 
buffering? Why? If you set this value to True, everything will be fine.
Best regards,
Niklas Volbers.
From: dimitri p. <dim...@gm...> - 2005年05月31日 18:09:35
Yes, this could could very well be a matplotlib issue. I will try to do som=
e=20
tests, thanks for cc'ing it to the matplotlib list.
Dimitri
On 5/31/05, John Gill <jn...@eu...> wrote:
>=20
> I think this might be a matplotlib issue.
>=20
> I've been having some refresh issues with matplotlib since switching to=
=20
> 2.6. In particular I've noticed that if I put my mouse over the toolbar=
=20
> and let a tooltip pop up the canvas does not get repainted.
>=20
> Up to now I'd been assuming this problem was isolated to me (I use=20
> ratpoison as a window manager, which can confuse some apps).
>=20
> I've cc'ed the matplotlib list in case anyone can throw some light on=20
> this.
>=20
> John
>=20
> dimitri pater wrote:=20
>=20
> Hello,
> I upgraded to PyGTK 2.6 from 2.4 . Now, when I switch from page 2 on a=20
> Gtk.Notebook back to page 1, page 1 still shows some elements from page 2=
=20
> (it is not refreshed, just some parts). Both pages contain graphs created=
=20
> with Matplotlib. I never had problems like this with 2.4...
> Any clues somebody? If necessary, I will attach the source files.
>=20
> Best regards,
> Dimitri
>=20
> ------------------------------
>=20
> _______________________________________________
> pygtk mailing list py...@da...
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
> =20
> =20
--=20
Please visit dimitri's website: www.serpia.com <http://www.serpia.com>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /