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
HG
HG 2021 年 6 月 14 日

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVoronoi Diagram についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by