我知道我错过了如果anyt = one可以提供指针会感到高兴。如何绘制为矩形区域并为每个线段更改颜色?
谢谢
代码示例:
from matplotlib import pyplot as plt
Flow_Rate = [1.7, 1.1, 1.0, 0.8]
Volume = [50, 25, 47, 90]
plt.figure(figsize=(15,7))
plt.fill_between(Volume,Flow_Rate)
plt.title('Flow Rate x Volume')
plt.ylabel('Flow Rate, m3/c')
plt.show()