sciPy中的voronoi_plot_2d,虚线和实线之间的区别?和警告?

时间:2017-03-16 20:05:16

标签: python scipy voronoi

所以我使用的是函数voronoi_plot_2d(),它是SciPy的一部分,当我绘制我的图时,我得到了下面的图表,其中一些在集群之间有一些实心边界,一些有虚线边框。 (隐藏每个群集的散点图)

他们背后有不同的含义吗?如果它们是同一个东西,我怎么能指定我只想绘制实线边框?文档(http://scipy.github.io/devdocs/generated/scipy.spatial.voronoi_plot_2d.html)没有提及任何内容。

enter image description here

另外,我收到了以下警告

.timeline-img:nth-child(1) {
    background: #F44336; /* red */
}
.timeline-img:nth-child(2) {
    background: #E91E63; /* pink */
}
.timeline-img:nth-child(3) {
    background: #9C27B0; /* purple */
}
.timeline-img:nth-child(4) {
    background: #673AB7; /* deep purple */
}
.timeline-img:nth-child(5) {
    background: #3F51B5; /* indigo (blue-purple) */
}
.timeline-img:nth-child(6) {
    background: #2196F3; /* blue */

当我使用voronoi_plot_2d()函数时。我正在运行Python 3.5,有没有办法让警告消失?我没有在我的代码中使用ishold函数或axes.hold,因此警告必须来自voronoi_plot_2d()。

1 个答案:

答案 0 :(得分:2)

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

相关问题