是她丫

关注

Python编程:matplotlib绘制散点图

是她丫

关注

阅读 74

2022-02-17


代码示例

import matplotlib.pyplot as plt

x = [1, 2, 3, 4, 5]
y = [2, 4, 6, 8, 10]

plt.figure()
plt.scatter(x, y)
plt.savefig("f.png")

绘制效果

Python编程:matplotlib绘制散点图_代码示例



相关推荐

12a597c01003

python matplotlib绘制散点图

12a597c01003 66 0 0

琛彤麻麻

Matplotlib.pyplot.scatter 散点图绘制

琛彤麻麻 14 0 0

汤姆torn

matplotlib.pyplot.scatter()绘制散点图

汤姆torn 81 0 0

瑾谋

Python+matplotlib绘制散点图模拟心型图案

瑾谋 89 0 0

胡桑_b06e

【Python】matplotlib画图_散点图

胡桑_b06e 35 0 0

菜头粿子园

Matplotlib 散点图、柱形图、饼图绘制

菜头粿子园 33 0 0

骑在牛背上看书

python 绘制多个散点图

骑在牛背上看书 46 0 0

杰森wang

Matplotlib散点图

杰森wang 67 0 0

正义的杰克船长

【Matplotlib】散点图

正义的杰克船长 47 0 0

sunflower821

Python绘制柱状散点图

sunflower821 58 0 0

精彩评论(0)

0 0 举报