Feb-06-2017, 02:55 PM
(Feb-06-2017, 01:59 PM)wavic Wrote: I am not familiar with matplotlib but I've found this. I hope it will help
That's worked perfectly !! Thanks.
I changed the lines 3 and 5 and now I have legend in both graphs:
f,axarr = plt.subplots(2, sharex=True) axarr[0].plot(X,Tt,label='Tt') legend = axarr[0].legend() axarr[1].plot(X,B,label='B') legend = axarr[1].legend() plt.show()