hello,

ginput isn't working for me right now but was when i was using 0.98.3.
running the script below gives me the following traceback.
anyone know what is going on?

thx,
drs

 > python -c "import matplotlib;print matplotlib.__version__"
0.98.5.2

 > ./gaelInput.py
Please click
Traceback (most recent call last):
   File "./gaelInput.py", line 7, in <module>
     x = ginput(3)
   File "/Library/Frameworks/Python.framework/Versions/4.1.30101/lib/ 
python2.5/site-packages/matplotlib/pyplot.py", line 358, in ginput
     return gcf().ginput(*args, **kwargs)
   File "/Library/Frameworks/Python.framework/Versions/4.1.30101/lib/ 
python2.5/site-packages/matplotlib/figure.py", line 1073, in ginput
     show_clicks=show_clicks)
   File "/Library/Frameworks/Python.framework/Versions/4.1.30101/lib/ 
python2.5/site-packages/matplotlib/blocking_input.py", line 258, in  
__call__
     BlockingInput.__call__(self,n=n,timeout=timeout)
   File "/Library/Frameworks/Python.framework/Versions/4.1.30101/lib/ 
python2.5/site-packages/matplotlib/blocking_input.py", line 96, in  
__call__
     self.fig.show()
AttributeError: 'Figure' object has no attribute 'show'

# gaelInput.py
from pylab import arange, plot, sin, ginput, show
t = arange(10)
plot(t, sin(t))
print "Please click"
x = ginput(3)
print "clicked",x
show()

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to