Voronoi Diagram in Dashed Lines

조회 수: 3 (최근 30일)
Chad
Chad 2020년 3월 30일
댓글: HG 2021년 6월 14일
I'm trying to plot a voronoi diagram using dashed lines instead of solid. I am using vectors X and Y.
voronoi(X,Y,'r','LineStyle','--')
The code above returns a "Too many Arguments" error
v = voronoi(X,Y,'r')
set(v,'LineStyle','--')
The code above actually does make the voronoi into dashed lines, but it also plots X and Y as dashed lines, and I have no idea why. Any ideas?

채택된 답변

darova
darova 2020년 3월 30일
Try to grab only handles of voronoi lines
set(h(2:end),'linestyle','--')
  댓글 수: 2
Chad
Chad 2020년 3월 30일
Thank you, that worked

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Voronoi Diagram에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by