开发者

How to draw matplotlib graph in eclipse?

开发者 https://www.devze.com 2023-02-09 04:13 出处:网络
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

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

精彩评论

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