viscircles - How to flip dashed line?

조회 수: 7 (최근 30일)
yonatan s
yonatan s 2021년 2월 5일
댓글: yonatan s 2021년 2월 6일
Hi,
I'm using viscircles to draw a circle with the dashed line property. The problem is one specific dash line interefers with a data point (the circle is stack backwards, but its color and the data color both have red hue).
Is there a way to flip the dashed line, so where it is blank it would be red and viceversa?
Thanks.
  댓글 수: 2
KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 2월 5일
Please attach the sample image
yonatan s
yonatan s 2021년 2월 6일
Attached.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2021년 2월 6일
h = viscircles([.5,.5], 1, 'LineStyle', '--', 'color', 'r');
nc1 = h.NodeChildren(1);
set(nc1, 'XData', fliplr(nc1.XData), 'YData', fliplr(nc1.YData))

추가 답변 (0개)

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by