Horizontal box plots in matplotlib/Pandas

前端 未结 2 1250
野的像风
野的像风 2020-12-13 10:16

Bar plots:

matplotlib offers the function bar and barh to do vertical and horizontal bar plots.

Box plots:

2条回答
  •  伪装坚强ぢ
    2020-12-13 10:27

    vert=False stands # for "no vertical"
    

    Use by='categorical_feature name' to make box for every level plt.tight_layout() # kills any overlapping plots (not always) Matplotlib and Pandas are really easy when you master them and you can do powerful plots using them.

提交回复
热议问题