I have a simple program below.
import matplotlib.pyplot as plt
import numpy as np
X=np.linspace(0,5,100)
y = 2*X
fig=plt.plot(X,y)
plt.show()
plt.savefig('graph.png')
It seems that the plt.show() does not do anything. I am inside a ipython notebook and it used to work ok. Any help will be appreciated.
Regards
Keith