Click on plot line not working on windows?
Ältere Kommentare anzeigen
Hi,
I am currently writing a program which does its stuff by having the user click on 2 different plot lines plotted using plotyy and on the background. It works fine on my macbook air but the thing is, when I run the same code on windows 7, only the clicks on the background are working. Here is what I am using to record the clicks:
set(ax(1),'ButtonDownFcn','arr=get(ax(2),''CurrentPoint''); % background click set(get(ax(1),'child'),'ButtonDownFcn','con=get(ax,''CurrentPoint'');'); % first line click set(get(ax(2),'child'),'ButtonDownFcn','pos=get(ax(2),''CurrentPoint''); % second line click
Any help appreciated.
Thank you.
Antworten (1)
Antoine
am 1 Jun. 2014
0 Stimmen
Kategorien
Mehr zu Two y-axis finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!