Last active
August 29, 2015 14:16
-
-
Save quizzicol/28995fd270ca9f5c11e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
axes = [ax, axb, axc] | |
legend_loc = ['upper left', 'upper right', (0.75, 0.7)] | |
axes_grid = [True, False, False] | |
ax_data = zip(axes, legend_loc, axes_grid) | |
for axis, legend_loc, grid in ax_data: | |
handles, labels = axis.get_legend_handles_labels() | |
axis.legend(handles, labels, loc=legend_loc, frameon=False) | |
axis.grid(grid) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment