Voronoi Diagram in Dashed Lines

3 次查看(过去 30 天)
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','--')

更多回答(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