필터 지우기
필터 지우기

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 CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by