I had everything set up and working a few months ago - Spyderxy; matplotlib; numpy and all that... Today I went to open up spyder but it wasn't working so I uninstalled and reinstalled.
I installed 2.7
I then installed numpy/matplotlib as well. But now I'm having a problem - my old code doesn't work. Normally I could write -
from matplotlib import *
xdata = [1, 2]
ydata = [3, 4]
plot(xdata, ydata)
And it'd work fine. But now the only way I can get it to graph anything is if I type -
import matplotlib.pyplot as plt
x = [1, 2]
y = [2, 3]
plt.plot(x, y)
plt.show()
Any ideas on how to get it back to normal? I'm on the verge of tearing out my hair.
Cheers
Oh not sure if this is relevant but it is freezing all the time now too.
plt.ion()