This script use the pyqtgraph library to plot the (x, y) angles of IMU6050
http://www.pyqtgraph.org/documentation/introduction.html
http://blog.tkjelectronics.dk/2012/09/a-practical-approach-to-kalman-filter-and-how-to-implement-it/
2017 Kalman filter for IMU6050 arduino and Python