且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Matplotlib分散标记大小

更新时间:2023-11-30 20:40:28

此函数在关键字args之前引入两个args:

This function takes in two args before the keyword args:

scatter(x, y, s=20, ...)

并且您传入了三个,因此您指定了 s 两次(一次隐式,一次显式).

And you are passing in three, so you are specifying s twice (once implicitly and once explicitly).

实际上,我认为您正在尝试使用 2D 散点图函数而不是 3D 散点图函数.您可能想要这样做:

Actually, I think you are trying to use the 2D scatter plot function instead of a 3D one. You probably want to do this instead:

from mpl_toolkits.mplot3d import Axes3D
Axes3D.scatter( ... )