Ich zeichne ein NumPy-Array von Werten, I
, mit IPython-Notebook in %matplotlib
Inline-Modus mit dem Plot-Befehl plt.plot(I,'o')
.So verbergen Sie <matplotlib.lines.Line2D> im IPython-Notebook
Die resultierende Ausgabe ist:
<matplotlib.figure.Figure at 0x119e6ead0>
Out[159]:
[<matplotlib.lines.Line2D at 0x11ac57090>,
<matplotlib.lines.Line2D at 0x11ac57310>,
<matplotlib.lines.Line2D at 0x11ac57510>,
<matplotlib.lines.Line2D at 0x11ac57690>,
<matplotlib.lines.Line2D at 0x11ac57810>,
<matplotlib.lines.Line2D at 0x11ac57990>,
<matplotlib.lines.Line2D at 0x11ac57b10>,
....
....
]
Dann ist mein Plot zeigt unterhalb dieser Zeilen der Ausgabe auf.
Gibt es eine Möglichkeit, nur die Grafik anzuzeigen und die <matplotlib.lines.Line2D at ...>
von der Ausgabe auszublenden?
Mögliche Duplikate von [Deaktivieren Sie die Ausgabe von Matplotlib Pyplot] (http://StackOverflow.com/Questions/12056115/disable-the-Output-of-Matplotlib-PIplot) – iled