Menu

Commit [r8922]  Maximize  Restore  History

backend_qt4agg: eliminate duplicate call to FigureCanvasAgg.draw()

The basic problem is that the most efficient way to eliminate the
duplication appears to be to do the Agg drawing in the paintEvent,
not in draw(); but then a draw() followed by copy_from_bbox may
result in a copy being made before the Agg draw has occurred.
The solution here is to do that drawing inside copy_from_bbox
when necessary.

Side note: it seems that by using the update() method, the
qt4agg draw() is acting more like draw_idle() than like the draw()
methods in the other interactive backends.

efiring 2011-01-17

changed /trunk/matplotlib/lib/matplotlib/backends/backend_qt4agg.py
/trunk/matplotlib/lib/matplotlib/backends/backend_qt4agg.py Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.