小编HMP*_*ark的帖子

pandas plot在ipython notebook中不显示为inline

我试图在ipython笔记本内联中绘制图形,但是.plot()方法只是显示对象信息,如

<matplotlib.axes._subplots.AxesSubplot at 0x10d8740d0>
Run Code Online (Sandbox Code Playgroud)

但没有图表.我也可以让它显示图形plt.show(),但我想要内联.所以我tryed %matplotlib inlineipython 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显示相同.

python plot matplotlib pandas ipython-notebook

6
推荐指数
1
解决办法
8945
查看次数

标签 统计

ipython-notebook ×1

matplotlib ×1

pandas ×1

plot ×1

python ×1