Draw plot in a thread (doesn't seem to cause Python to fault anymore)