Matplotlib - Performance and Large Data
You wrote this code but get an error:
RuntimeError: main thread is not in main loop. What is the likely cause?
import matplotlib.pyplot as plt
matplotlib.use('Agg')
plt.plot([1,2,3],[4,5,6])
plt.savefig('out.png')