1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > anaconda安装 matplotlib折线图 散点图 条形图 直方图

anaconda安装 matplotlib折线图 散点图 条形图 直方图

时间:2021-08-04 16:53:40

相关推荐

anaconda安装 matplotlib折线图 散点图 条形图 直方图

环境软件

anaconda安装与操作(已完成)

练习

绘制网格

plt.grid()

绘制图例

plt.plot(x,y_1,label=“自己”)

plt.plot(x,y_2,label=“同桌”)

plt.legend(loc=“upper right”)

设置颜色字体线条等参数

matplotlib官网查阅学习其他类型图

散点图

练习:3,10temperature-scatter

plt.scatter(x_3,y_3,label=“3月”)

条形图

统计离散数据

plt.bar(range(len(a)),b,width=0.3)

plt.barh(range(len(a)),b,height=0.3,color=“orange”)

直方图

统计原始数据

plt.hist()

百度echarts

plotly:可视化工具中的github

seaborn

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。