HMP*_*ark 6 python plot matplotlib pandas ipython-notebook
我试图在ipython笔记本内联中绘制图形,但是.plot()方法只是显示对象信息,如
<matplotlib.axes._subplots.AxesSubplot at 0x10d8740d0>
Run Code Online (Sandbox Code Playgroud)
但没有图表.我也可以让它显示图形plt.show(),但我想要内联.所以我tryed %matplotlib inline和ipython notebook --matplotlib=inline,但它并没有帮助.
如果我使用%matplotlib inline,那么.plot()显示
/Users/<username>/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/IPython/core/formatters.py:239:
FormatterWarning: Exception in image/png formatter: 'ascii' codec can't decode byte 0xe2 in position 0: ordinal not in range(128) FormatterWarning,
Run Code Online (Sandbox Code Playgroud)
和使用ipython notebook --matplotlib=inline显示相同.
更改
ipython notebook --matplotlib=inline
Run Code Online (Sandbox Code Playgroud)
至
ipython notebook --matplotlib inline
Run Code Online (Sandbox Code Playgroud)
注意没有=迹象.