Need to add space between SubPlots for X axis label, maybe remove labelling of axis notches

前端 未结 2 1875
臣服心动
臣服心动 2020-12-24 06:34

Looking to add in vertical space between plotted graphs to allow a X-Axis label to show:

Each graph needs to have space to show the day, currently the last 2 graphs

2条回答
  •  既然无缘
    2020-12-24 07:09

    Use subplots_adjust. In your case this looks good:

    fig.subplots_adjust(hspace=.5)
    

    to remove the tick labels do this:

    ax1.set_xticklabels([])
    

    Similar for the yticklabels. However, you cannot share the x-axis with the plots that do have tick labels.

    enter image description here

提交回复
热议问题