开发者

How to draw matplotlib graph in eclipse?

I can draw matplotlib graph in command line(shell) environment, but I find that I could not draw the same graph开发者_JS百科 inside the eclipse IDE. such as plot([1,2,3]) not show in eclipse, I writed show() in the end but still not show anything

my matplotlib use GTKAgg as backend, I use Pydev as plugin of eclipse to develop python.


import matplotlib.pyplot as mp
mp.ion()
mp.plot(x,y)
mp.show()
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜