"""
    添加网格与猫叔
"""
 
import matplotlib.pyplot as plt
 
plt.figure(figsize=(10, 4), dpi=80)  # 图片长宽和清晰度
plt.plot([1, 2, 3, 4, 5], [13, 14, 12, 16, 13], "b")
 
plt.grid(True, linestyle="--", alpha=0.5)   # 网格
plt.title("title")
plt.xlabel("xlabel")
plt.ylabel("ylabel")
 
plt.show()
 

Matplotlib笔记:添加网格与描述

 

相关文章:

  • 2021-09-21
  • 2022-01-11
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-16
  • 2021-04-13
猜你喜欢
  • 2022-12-23
  • 2021-06-01
  • 2022-01-19
  • 2021-06-10
  • 2022-01-30
  • 2021-12-27
  • 2021-09-05
相关资源
相似解决方案