Description
Hi!
I've faced following issue in my GUI-app with real-time data visualization.
I've created simple app with QWidget (with fixed size policy!) (for matplotlib plot) and QButton (to refresh the plot).
On creation, layout
and figure
occupy all available space within QWidget. Everything looks correct: I'm able to use different QAlignments, create several plots inside a single layout
, etc.
But, during the blitting, it seems like that copy_from_bbox
returns unscaled coordinates and background is being re-drawn incorrectly. At the same time, updated data points keep being updated on their correct positions (on x-axis), but also are being accumulated on old autoscaled background layer.
Here are some examples:
You might see here, that grids have different steps.
Issue is also described at
http://stackoverflow.com/questions/32698501/fast-redrawing-with-pyqt-and-matplotlib .
As mentioned there, the issue happens both in Win7 and Linux, with both PyQt4 and PyQt5.
Using Python 3.4, latest stable matplotlib, numpy, etc.
Issue is, probably, related to #916 .