这必须是一个非常基本的问题:我正在尝试使用Matplotlib。以下是documentation的基本示例。Matplotlib不显示数字
import numpy as np
import matplotlib.pyplot as plt
x = np.arange(0,5,0.1)
y = np.sin(x)
plt.plot(x,y)
我在ipython
,bpython
尝试这样做,默认的解释(Ubuntu的10.10,64位)和我得到的都是这样的消息:
[<matplotlib.lines.Line2D object at 0x3f14a90>]
我在做什么错?
或`plt.savefig`将结果保存在图像文件中 – Philipp 2011-01-28 17:57:00