Echarts可视化教程

  1. 网站首页
  2. 百度ECharts
  3. ECharts实例
  4. ECharts入门
  5. 地图大全
  6. ECharts官网

Python绘制图表(折线图示例一)

import matplotlib.pyplot as plt
 
# 销售额数据
sales = [100, 150, 120, 180, 200, 250, 300, 280, 350, 400, 380, 450]
 
# 月份数据
months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
 
# 绘制折线图
plt.plot(months, sales)
plt.title('Sales Trend')
plt.xlabel('Month')
plt.ylabel('Sales ($)')
plt.show()
点击展开全文

相关文章

  1. Python结合ggplot库实现图表绘制
  2. Python绘制图表(柱状图示例二)
  3. Python绘制图表(柱状图示例)
  4. Python绘制图表(折线图示例二)
  5. 如何利用Python绘制多维图表(饼图)