[AstroPy] [Astropy] python install prb.

Xavier Couvelard xaviercouvelard at gmail.com
Mon Feb 15 13:29:34 EST 2016


Hello,

I went through the tutorial 
https://python4astronomers.github.io/installation/python_install.html to 
install python, it went well, but at the end i have problem with 
matplotlib.


In [7]: print(matplotlib.__version__)
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-7-dc737d9da186> in <module>()
----> 1 print(matplotlib.__version__)

NameError: name 'matplotlib' is not defined

If i follow anyway:

In [9]: plt.plot(x, sin(x))
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-9-298a676ae7cb> in <module>()
----> 1 plt.plot(x, sin(x))

Does any one can help ?

Thanks

Xavier



More information about the AstroPy mailing list