我尝试了以下方法:
import matplotlib.pyplot as plt
import numpy as np
bb = [1,2,3,4,5,6,7,8,9,10]
cc = ["red","red","yellow","red","green","red","red","green","red","red"]
fig = plt.figure()
fig.set_size_inches(50,70)
ax1 = fig.add_subplot(331)
ax1.bar(np.arange(len(bb)), bb, color=cc,width=0.6)
plt.show()
我想获取绘图的x比例和y比例列表。我如何得到它?