attempted pyqtgraph solution, but suffers from memory leak and not that much faster