- Thread Starter
- #281
Around line 463, replace
Code:
#fig.legend(loc=3, bbox_to_anchor=(0.899, 0.11))
fig.legend(loc=3, bbox_to_anchor=(0.125, 0.11))
with
Code:
lines1, labels1 = ax1.get_legend_handles_labels()
lines2, labels2 = ax2.get_legend_handles_labels()
ax1.legend(lines1 + lines2, labels1 + labels2, loc=3)
The latter lets matplotlib auto-locate the legend at the bottom left. I've updated the code in the original post.
Last edited: