I looked at other sites like install matplotlib in Python, but I can not do it at all. I need this module to do some 2D graphics. As an example, I'm trying to use the script:
from numpy import *
from matplotlib.pyplot import*
def main():
T = array([[1, 2, 2], [1, 4, 1]])
plotfig(T)
def plotfig(mat):
eixo_x = hstack((mat[0,:], mat[0,0]))
eixo_y = hstack((mat[1,:], mat[1,0]))
plot(eixo_x, eixo_y, '-o')
grid(True)
xlim(-1, 10)
ylim(-1, 10)
main()
But when I try to run it comes back with the following error:
ImportError: No module named matplotlib.pyplot
I use Python 2.7 with Spyder interface, Anaconda 2.3