matplotlib基础
来源:互联网 发布:微赢专业数据代理平台 编辑:程序博客网 时间:2024/06/06 01:59
数据如下:
# -*- coding: UTF-8 -*-import matplotlib.pyplot as pltimport pandasdt=pandas.read_excel("matplotlibTest.xlsx",delimiter="\t")dt['DATE']=pandas.to_datetime(dt['DATE'])print(dt.head(3))plt.plot(dt['DATE'],dt['VALUE'])plt.xlabel("Month")plt.ylabel("Number")plt.title("aaaa")plt.xticks(rotation=45)plt.show()
输出:D:\python\python.exe D:/warkspace/pythonTest/com/Matplotlib1.py DATE VALUE0 1987-01-01 3.41 1987-02-01 3.22 1987-03-01 3.1
阅读全文
0 0
- Matplotlib 基础
- matplotlib基础
- matplotlib基础
- matplotlib基础
- matplotlib基础
- matplotlib绘图基础
- python matplotlib 基础
- matplotlib绘图基础
- matplotlib绘图基础
- matplotlib绘图基础
- 9、matplotlib 基础入门
- Matplotlib画图基础
- matplotlib绘图基础--1
- matplotlib绘图基础--2
- matplotlib绘图基础--3
- Python之matplotlib基础
- matplotlib绘图基础
- Numpy 和 Matplotlib 基础
- 函数之闭包
- php新特性你知道多少
- bzoj3143/洛谷3434 游走 高斯消元求期望
- 从《人民的名义》看智慧园区运行监控可视化
- 多线程总结
- matplotlib基础
- 十分钟快速理解依赖注入
- dev/watchdog和dev/watchdog0 是同一个设备
- codeforces_814B.An express train to reveries
- html5 video标签不能播放mp4的问题
- httpclient
- ASCII码表
- okhttp上传返回的加密信息解析错误
- 第六章 贯彻执行