【发布时间】:2014-04-04 07:31:25
【问题描述】:
我在 Mac OS X PyCharm 上将 Enthought 设置为解释器:
~/Library/Enthought/Canopy_64bit/User
但是,它没有显示任何来自 matplotlib 的图。
import pandas as pd
from numpy import *
import matplotlib.pyplot as plt
ts = pd.Series(random.randn(1000), index=pd.date_range('1/1/2000', periods=1000))
ts = ts.cumsum()
ts.plot()
这只是给了我Out[124]: <matplotlib.axes.AxesSubplot at 0x10dd29f90>。它不显示情节,也不做任何其他事情。没有错误,什么都没有。
【问题讨论】:
标签: python plot pycharm enthought