Click on plot line not working on windows?

8 ビュー (過去 30 日間)
Antoine
Antoine 2014 年 5 月 22 日
コメント済み: Jan 2014 年 6 月 1 日
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.
  2 件のコメント
Antoine
Antoine 2014 年 5 月 22 日
I should have added that on windows, when clicking on the line, MATLAB "thinks" I'm clicking on the background as if the background was actually over the lines.
Jan
Jan 2014 年 6 月 1 日
Please post a running example. There is a problem with the number of quotes and you could a an example call to plotyy instead of expecting, that we will do this to reproduce your problem.
What exactly is "the backgorund"?

サインインしてコメントする。

回答 (1 件)

Antoine
Antoine 2014 年 6 月 1 日
Anybody? Are there known differences in the way MATLAB handles line clicking between mac and windows?

カテゴリ

Help Center および File ExchangeTwo y-axis についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by