Echarts可视化教程

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

Python绘制图表(柱状图示例)

import matplotlib.pyplot as plt
 
# 销售额数据
sales = [1000, 1200, 1500, 1800, 2000, 2500]
 
# 年份数据
years = ['2018', '2019', '2020', '2021', '2022', '2023']
 
# 绘制柱状图
plt.bar(years, sales)
plt.title('Annual Sales')
plt.xlabel('Year')
plt.ylabel('Sales ($)')
plt.show()
点击展开全文

相关文章

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