Re: [Matplotlib-users] Question about copy_from_bbox

2014-04-06 Thread iMichka
I tried to get the resizing working, but to no avail. Without modifying your code, when you click on multiple squares, and then resize, all the previously displayed squares are dawn, as if there was a merge of all the previous blits... Any idea ? -- View this message in context: http://matplo

Re: [Matplotlib-users] Question about copy_from_bbox

2014-04-04 Thread iMichka
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 plo

Re: [Matplotlib-users] Question about copy_from_bbox

2014-04-01 Thread Pierre Haessig
Hi Michka, I haven't practiced PyQt for some time, but I think I remember there is a common practice of using a "0 ms" timer to launch a function after the Gui setup. I've modified your gist here : https://gist.github.com/pierre-haessig/9909708 (for some reason the Github fork button printed "The

[Matplotlib-users] Question about copy_from_bbox

2014-03-31 Thread Michka Popoff
Hi I am using blitting and am not able to get it to work as I want. I am using copy_from_bbox during the setup of my PyQt GUI to save a meshgrid as a starting empty background. Then, once the GUI is loaded, the user can click on the meshgrid and a square is displayed on the selected pixel with