Hi

thanks for the help, this is exactly what I needed. I updated the code in my
app and it worked.

Some minor observations though :
- This does not play well with tight_layout. I think tight_layout tries to
readjust the plots even after the singleShot call. So I needed to disable
it.
- I have plots in multiple tabs (in a QtGui.QTabWidget()). When moving from
one tab to another, I update the plots. I had to set the delay to 50 ms (on
faster computers the delay could be made smaller). 0 ms is too short in this
specific case and the copy_from_bbox will copy the background of the
previous tab.
- I have to work on the resizing of the window. I have to catch the
resizeEvent in the plot and update it to get a new fresh background. Don't
know what's the best solution for this.

Thanks very much for the singleShot trick, this was very helpful.

Michka



--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/Question-about-copy-from-bbox-tp43182p43192.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to