Real time plotting with Matplotlib, PyQt and Threading ends to python crash
问题 I've been struggling with my Python application and I can't find any answers. I'm having PyQT GUI application which uses Matplotlib widget. GUI starts a new thread which handles plotting to mpl widget. I'm afraid I run now to a race condition by accessing matplotlib drawing components from another thread which leads to crash. This is basically, what my code looks like: class Analyzer(QMainWindow, Ui_MainWindow): def __init__(self, parent=None): self.timer = QTimer() super(Analyzer, self)._