Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

voronoi_plot_2d in SciPy, difference between dashed lines and solid lines? and warning?

Tags:

So I was using the function voronoi_plot_2d() which is part of SciPy and when I plot my diagram, I got the diagram below, where some have solid borders between the clusters and some have dashed borders. (The scatter plot of each cluster is hidden)

Do they have separate meaning behind them? If they are the same thing, how can I specify that I only want to plot solid borders, for example? The documentation (http://scipy.github.io/devdocs/generated/scipy.spatial.voronoi_plot_2d.html) does not mention anything.

enter image description here

Also, I got the following warning

MatplotlibDeprecationWarning: The ishold function was deprecated in version 2.0.
MatplotlibDeprecationWarning: axes.hold is deprecated.

when I use the voronoi_plot_2d() function. I'm running Python 3.5, is there a way to make the warning disappear? I don't use either the ishold function or axes.hold in my code, so the warning must've come from inside the voronoi_plot_2d().

like image 848
blueblood Avatar asked Mar 16 '17 20:03

blueblood


1 Answers

Dashed lines are infinite and are used when the Voronoi cell is infinite.

like image 75
6502 Avatar answered Oct 04 '22 22:10

6502