0

I am trying to increase the thickness of all the graphs in the subplots arranged in 3x1 fashion. Using some previous block/thread in this website I found that something this works for a single graph, I tried this also, but unfortunately it is increasing the thickness of a single subplot instead of all the subplots

ax = fig1.gca()
for axis in ['top','bottom','left','right']:
  ax.spines[axis].set_linewidth(1.5)

Could any one please comment/suggest anything. Thanks in advance

  • @BigBen Thanks a lot for your quick response. Should I loop over this command to the subplots? Sorry could you kindly elaborate how to do that ? – user13680518 Apr 15 '21 at 14:59

1 Answers1

1

How about:

fig1, (ax1, ax2, ax3) = plt.subplots(3, 1)

for axis in ['top','bottom','left','right']:
    ax1.spines[axis].set_linewidth(1.5)
    ax2.spines[axis].set_linewidth(1.5)
    ax3.spines[axis].set_linewidth(1.5)
screenpaver
  • 1,120
  • 8
  • 14