custom legend function for matplotlib chart
custom legend function for matplotlib chart Question: Right now when I have dual y-axis and I want to have one legend box for both of my labels I do the following: fig, ax = plt.subplots(1,2) ax0=ax[0].twinx() line1=ax[0].plot([1, 2, 3], [4, 5, 6], ‘b’, lw=1, label=’Line 1′) line2=ax0.plot([1, 2, 3], [6, 5, 4], ‘r’, lw=1, label=’Line …