获取绘图matplotlib的x和y刻度

时间:2019-02-14 11:30:09

标签: python python-3.x matplotlib

我尝试了以下方法:

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()

enter image description here

我想获取绘图的x比例和y比例列表。我如何得到它?

0 个答案:

没有答案