How to update a realtime plot and use buttons to interact in pyqtgraph?
I used the "scrolling graph" example from pyqtgraph.examples as template to create a plot, which shows a continuous sinus wave. Now, I would like to use buttons to change the amplitude of the sinus wave. This is why I used another structure (see the code below). This doesn't work, it only plots a static sinus wave. How can I use my update function to plot the continuous sinus wave? How can I chage the amplitude by using the buttons? I have already checked this and this without success. import sys from PyQt4 import QtGui, QtCore import numpy as np import pyqtgraph as pg class sinus_wave(QtGui