AX.Scatter(x,y,z,s = none)在投影中引起错误='3d'mode

问题描述 投票:0回答:1
以模式下的奇怪行为。 thiscode

projection='3d'
引起错误:
import matplotlib.pyplot as plt fig = plt.figure() ax = plt.axes(projection='3d') ax.scatter(0,0,0, s=None) plt.show()

.

,尽管没有参数
ValueError: s must be a scalar, or float array-like with the same size as x and y

s

等于某些特定值,一切正常。
任何想法?

这是预期的行为。 3D轴状态的文档:
s:float或类似数组,默认:20

点数的标记大小** 2。与XS和YS相同长度的数组或单个值以使所有标记的大小相同。

python matplotlib scatter3d
1个回答
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.