plot() funktioniert nicht auf IPython notebook

Ich bin neu in python, scientific computing, und ich habe versucht, eine einfache Grafik auf IPython notebook.

import pandas
plot(arange(10))

Dann Fehler hatte, wie unten gezeigt.

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-2-6b139d572bd6> in <module>()
      1 import pandas
----> 2 plot(arange(10))

NameError: name 'plot' is not defined

Statt, mit IPython --pylab-Modus, das Recht, eine Grafik aufgetaucht, als ich versucht habe den gleichen code.

Bin ich, fehlt jede Umgebung?

Meine Umgebung ist Mac OSX 10.8.5, python 2.7.5, IPython 1.1.0, matplotlib 1.3.1 und pandas 0.12.0. Ich heruntergeladen python-wissenschaftlichen Umfeld von Anaconda-installer aus dem Kontinuum.io. Anaconda-version ist die neueste, wie der 1/30/2014.

  • Plotten Beispiel hier
InformationsquelleAutor mako | 2014-01-30
Schreibe einen Kommentar