Optimization of Bar Plots in Matplotlib/Pandas

前端 未结 1 475
暖寄归人
暖寄归人 2021-01-27 01:55

The code:

df=pd.DataFrame([770,215,179,107,83,82,70,60,57,54,52],index = [\'A\',\'B\',\'C\',\'D\',\'E\',\'F\',\'G\',\'H\',\'I\',\'J\',\'K\']) 

ax = df.plot(kind         


        
相关标签:
1条回答
  • 2021-01-27 02:42

    You could use a logarithmic y-scale by providing ax.set_yscale('log')

    0 讨论(0)
提交回复
热议问题