On Tue, Feb 28, 2012 at 4:05 PM, Antoine Sirinelli <anto...@monte-stello.com
> wrote:
> Hi,
>
> I have been using the event "draw_event" for a while with the old
> matplotlib 0.8. I have tested my program with newer versions but it seems
> the function connected to "draw_event" is never called.
>
> You can find an example of this there: https://gist.github.com/1901504
>
> With an old version the image color scale is rescaled when you zoom in.
> With matplotlib 1.x, no change is made on on the color scale.
>
> Have I missed something?
>
> Thanks in advance for your help.
>
> Antoine
>
Hey Antoine,
I'm not sure what changed in the mean time, but the problem is that the
instances of `az_imshow` aren't saved to anything (e.g. you should write
`implot2 = az_imshow(data, aspect='auto')`). I *think* what happens is that
you don't have any references to the object so it gets garbage-collected
and the events you create disappear. That's my made-up explanation.
-Tony
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users