This code plots serial data using mathplotlib and with high frequency. You might use it as a crude oscilloscope
import serial
from threading import Thread
import threading
import time
import matplotlib.pyplot as plt
import matplotlib.animation as animation