OPENCOURSEWARE ADVANCED PROGRAMMING STATISTICS FOR DATA ...

Matplotlib: in a shell (e.g.: Spyder) • With %matplotlib, in spyder, a new window will open • Every plot command updates the plot. plt.show is not required. plt.draw() might be needed in some cases to update the plot. %matplotlib import matplotlib.pyplot as plt import numpy as np plt.style.use('classic') x = np.linspace(0, 10, 100) plt.plot ... ................
................