gap-system

How to remove distance between two bars in matplotlib?

How to remove distance between two bars in matplotlib? Question: I am trying to plot bar graphs in matplotlib. I have set frequency of X-axis manually in matplotlib by using plt.xticks. But i can not remove the distance between two bars (first and second). What should i do to remove the distance between two horizontal …

Total answers: 1

Remove gap with gridspec

Remove gap with gridspec Question: Im trying to remove this gap using gridspec, any hints? fig = plt.figure(figsize=(10,10)) gs = GridSpec(2,2, hspace=0, figure=fig) gs1 = GridSpec(2,2, figure=fig, hspace=0, height_ratios = [10,1]) ax1 = fig.add_subplot(gs[0,0]) ax2 = fig.add_subplot(gs[0,1]) plt.subplots_adjust(wspace=None, hspace=None) ax3 = fig.add_subplot(gs1[1,:]) Asked By: Álvaro || Source Answers: I think you have the first GridSpec …

Total answers: 1