John Hunter wrote: >>>>>>"Eric" == Eric Firing <[EMAIL PROTECTED]> writes: > > > >> Hey someone said something nice about transforms! > > Eric> About time, isn't it! > > Eric> One thing I still don't understand: when is it necessary to > Eric> bracket code with freeze/thaw? > > It's never necessary, it's an optimization. Lots of objects share the > ax.transData transform. When it is called to transform, all the lazy > objects must be evaluated and lots of virtual function calls made. By > "freezing" the transform, it will evaluate the lazy objects and > compute and cache the components of the affine. Every freeze must be > paired with a thaw, and only when you know the window resize, figure > dpi, xlim settings, etc cannot occur in between the freeze and the > thaw.
John, I don't understand how event handling works, so I am wondering: can we indeed be sure that window resize etc events are being blocked inside the freeze/thaw block in Axes.draw()? Are they blocked inside the entire draw method? What controls when a mouse event gets processed? Thanks. Eric _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel