Use %matplotlib inline
Example:
from numpy.random import randn
import matplotlib.pyplot as plt
%matplotlib inline
plt.plot(randn(50).cumsum(),'k--')
Example:
from numpy.random import randn
import matplotlib.pyplot as plt
%matplotlib inline
plt.plot(randn(50).cumsum(),'k--')
No comments:
Post a Comment