matplotlib运行时错误

时间:2012-12-11 10:53:17

标签: python matplotlib

我已经在使用python 2.7的windows上安装了matplotlib。我正在尝试执行以下操作:

import matplotlib.pyplot as plot
plot.plot([1,2,3][1,2,3])

这会导致以下错误:

enter image description here

enter image description here

感谢您提供的任何帮助..

此致

1 个答案:

答案 0 :(得分:0)

首先,你错过了一个komma:

plot.plot([1,2,3],[1,2,3])

我的终止行为不可复制。如果我使用spyder和python 2.7,它只会给我一个语法错误。所以告诉我更多关于错误的信息。插入的komma是否仍然存在?