标签:添加 plot class div tick 字段 lib style ax1
1 import matplotlib.pyplot as plt 2 3 ax1 = plt.subplot(211) 4 ax2 = plt.subplot(212) 5 6 ax1.set_xticks(range(4)) 7 ax1.set_xticklabels(["a","b","c","d"]) 8 ax1.bar(range(4),[4,3,2,5]) 9 10 ax2.set_xticks(range(4)) 11 ax2.set_xticklabels(["as","bb","cc","dd"]) 12 ax2.bar(range(4),[6,1,2,3]) 13 14 plt.show()
标签:添加 plot class div tick 字段 lib style ax1
原文地址:https://www.cnblogs.com/weixiaokeji/p/9102464.html