import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from Cstring import StringIO
y = [3, 10, 7, 5, 3, 4.5, 6, 8.1]
N = len(y)
x = range(N)
width = 1/1.5
plt.bar(x, y, width, color="blue")
io=StringIO()
plt.savefie(io,format="png")
plt.xticks(rotation=70)



 PythonWise: Serving Dynamic Images with matplotlib

dynamically-serving-a-matplotlib-image-to-the-web-using-python%s

Matplotlib 画柱状图 - wishchin的专栏 - 博客频道 - CSDN.NET

matplotlib Bar Charts | Examples | Plotly

python - Date ticks and rotation in matplotlib - Stack Overflow

python - Generating a PNG with matplotlib when DISPLAY is undefined - Stack Overflow

相关文章:

  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2021-12-14
猜你喜欢
  • 2022-12-23
  • 2021-11-01
  • 2021-08-25
  • 2021-05-30
  • 2021-06-04
  • 2022-01-01
相关资源
相似解决方案