1

I can draw matplotlib graph in command line(shell) environment, but I find that I could not draw the same graph 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.

user504909
  • 9,119
  • 12
  • 60
  • 109
  • 1
    possible duplicate of [interactive matplolib through eclipse](http://stackoverflow.com/questions/3918889/interactive-matplolib-through-eclipse) – Jouni K. Seppänen Feb 09 '11 at 04:52

1 Answers1

1
import matplotlib.pyplot as mp
mp.ion()
mp.plot(x,y)
mp.show()
Nikos
  • 3,267
  • 1
  • 25
  • 32
Gav
  • 26
  • 1