python - ginput Not implemented Error -


in project, need extract several points in pixel coordinate in order transform points world points. every time, i'm using ginput function in spyder (python 2.7), got following error. example of code given below:

import matplotlib.pyplot plt import numpy np import os os.chdir(r'my path') rgb = io.imread('myphoto.jpg') plt.figure(1) pylab.imshow(rgb) pylab.show() [x,y] = plt.ginput(5) 

the error in below:

file "c:\python27\lib\site-packages\matplotlib\pyplot.py", line 592, in ginput return gcf().ginput(*args, **kwargs)

file "c:\python27\lib\site-packages\matplotlib\figure.py", line 1576, in ginput show_clicks=show_clicks)

file "c:\python27\lib\site-packages\matplotlib\blocking_input.py", line 291, in call blockinginput.call(self, n=n, timeout=timeout)

file "c:\python27\lib\site-packages\matplotlib\blocking_input.py", line 114, in call self.fig.canvas.start_event_loop(timeout=timeout)

file "c:\python27\lib\site-packages\matplotlib\backend_bases.py", line 2364, in start_event_loop raise notimplementederror

notimplementederror


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -