1、scatter函数原型 2、其中散点的形状参数marker如下: 3、其中颜色参数c如下: 4、基本的使用方法如下:
#导入必要的模块
importnumpy as np
importmatplotlib.pyplot as plt
#产生测试数据
x np.arange(1,10)
y x
fig plt.figure()
ax1 fig.a…
在前述学习过程中,已经初步接触了scatter()模块,知道其专门可以输出散点图。
本次探索一下scatter()模块的一些简单用法,供大家参考。前述学习记录请见链接:
python动画教程|Animations using Matplotlib-官网教程程序解读-CSDN…