在 scipy.cluster.hierarchy.dendrogram 中,设置 'ax' 或 'above_threshold_color' 会引发意外的关键字错误

In scipy.cluster.hierarchy.dendrogram, setting 'ax' or 'above_threshold_color' throws an unexpected keyword error

我在 Windows 8.1 机器上使用 scipy 0.16.0,当我尝试 运行 来自 [=24] 的 dendrogram() 函数时出现意外关键字错误=] 已通过 'ax' 或 'above_threshold_color' 的设置。这是错误:

TypeError: dendrogram() got an unexpected keyword argument 'above_threshold_color'

尽管 'ax' 和 'above_threshold_color' 都在可以找到的文档中明确指示为潜在关键字参数,但事实是 here。我不是绝对必须使用这些变量,但我不明白为什么只有这两个会给我带来问题。我唯一的想法是,某种混合设置可能会导致图形错误,但文档中没有任何指示。这只是一个错误吗?

DSM在上面的评论中是正确的,这只是一个版本问题。