2

This should be quite easy, but I don't even know the right name of what I want.

I want to plot frame lines in my matplotlib graphs, basically, transform the left graph in the right graph in the picture below:

enter image description here

My code is basically:

fig,ax = plt.subplots(1,1,squeeze=True,figsize=(16,14))

ax.plot(data1,negativeX,'g',linewidth=7)
ax.plot(data2,positiveX,'k')

for ax in fig.axes:
    ax.set_title(header)

plt.show()
Daniel Möller
  • 84,878
  • 18
  • 192
  • 214

0 Answers0