Re: FigureCanvasWxAgg not redrawn with wxpython 4.0.1 on Ubuntu 17.10

Dietmar Schwertberger <[email protected]> Fri, 9 Feb 2018 21:21:31 +0100
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
On 2/9/2018 8:29 AM, Riccardo Borgani wrote:ClientDC could
>  So you think I should always call Refresh on the whole frame when I 
> update the plot? Some of my plots will update several times per 
> second, would this slow the gui down?

As workaround, you should do so.

On calling draw(), the wx backend of Matplotlib will render the drawing 
to a bitmap and paste this to the screen.
Now, when you call Refresh() as well, it will be pasted a second time.

Compared to the rendering of a typical drawing, the additional pasting 
should not cause performance problems.


You probably have not tried, but e.g. zooming with the mouse does 
usually draw the rectangular selection. This probably also does not work 
with Wayland.

I would guess that Robin will comment on the issue. If it's made 
'official' that PaintDC is  deprecated due to these problems, then I 
will have a look and fix the Matplotlib wx backends. It's not only 
Wayland but also Mac OS that has minor problems.


Regards,

Dietmar

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.