two legend left and right x asix matplotlib code example
Example: two legend left and right x asix matplotlib
l1 = ax.plot(...)
l2 = ax.plot(...)
l3 = a_r.plot(...)
lns = l1+l2+l3
labs = [l.get_label() for l in lns]
ax.legend(lns, labs, loc=0)
l1 = ax.plot(...)
l2 = ax.plot(...)
l3 = a_r.plot(...)
lns = l1+l2+l3
labs = [l.get_label() for l in lns]
ax.legend(lns, labs, loc=0)