在Python 3.3中打印时出现Matplotlib 1.2错误

在Python 3.3中打印时出现Matplotlib 1.2错误,python,matplotlib,Python,Matplotlib,我试图使用Matplotlib 1.3在python3.3中绘制非常简单的内容。下面是我正在尝试的代码: import matplotlib.pyplot as plt x = [1, 2, 3, 4, 5] y = [1, 4, 9, 16, 25] plt.plot(x,y) 我收到这个信息: matplotlib.lines.Line2D object at 0x0000000006711860 我刚开始学习python,在pythonworld中非常新。plt.plot返回一个lin

我试图使用
Matplotlib 1.3
python3.3
中绘制非常简单的内容。下面是我正在尝试的代码:

import matplotlib.pyplot as plt
x = [1, 2, 3, 4, 5]
y = [1, 4, 9, 16, 25]
plt.plot(x,y)
我收到这个信息:

matplotlib.lines.Line2D object at 0x0000000006711860

我刚开始学习python,在
python
world中非常新。

plt.plot
返回一个
lines.Line2D
对象(因为您正在绘制一条线)。我猜你是在以交互方式工作,否则你就看不到那个“消息”

如果希望绘图实际显示,则需要添加:

plt.show()
@用户1551892——不。从交互提示中,如果命令返回的内容不是
None
,python将打印它的字符串表示形式(
\uuuuuu repr\uuu