Voronoi Diagram in Dashed Lines

6 Ansichten (letzte 30 Tage)
Chad
Chad am 30 Mär. 2020
Kommentiert: HG am 14 Jun. 2021
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?

Akzeptierte Antwort

darova
darova am 30 Mär. 2020
Try to grab only handles of voronoi lines
set(h(2:end),'linestyle','--')
  2 Kommentare
Chad
Chad am 30 Mär. 2020
Thank you, that worked

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Voronoi Diagram finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by