顶会常见的 python matplotlib 双Y轴柱状图
效果图:代码如下:import matplotlib.pyplot as pltimport numpy as npx_data = ['1','2','3']ax_data = [16,28,33]ax1_data = [7,8,9]fig=plt.figure()ax=fig.add_subplot(111)ax.set_ylim([15,35])ax.set_yticks=np.arange(15,35)ax.set_yticklabels=np.arange(15,35