フィルターのクリア

Problems paintg lines as a pencil

2 ビュー (過去 30 日間)
Silvia
Silvia 2013 年 6 月 15 日
I have a problem.
I have an image and over this image I am painting lines,as drawing with a pencil ,using the plot function p=plot(x,y). However, if I have drawn a first line and I try to draw another line, starting over the first line, the new one it doesn't appear.
I mean, If I click with the mouse over one line it doen't appear the new one.However if I click over any point on the image it appears.
Why can this happens?
Thanks

採用された回答

Walter Roberson
Walter Roberson 2013 年 6 月 15 日
The newly drawn line would probably have HitTest 'on', so clicking on it would active the callback for the line (probably none) instead of the callback for the image. When you put the line into place, turn its HitTest off.
  1 件のコメント
Silvia
Silvia 2013 年 6 月 16 日
That was the problem!. Thank you! Now it works perfectly!!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by