Skip to content

Instantly share code, notes, and snippets.

@quizzicol
Last active August 29, 2015 14:16
Show Gist options
  • Save quizzicol/28995fd270ca9f5c11e2 to your computer and use it in GitHub Desktop.
Save quizzicol/28995fd270ca9f5c11e2 to your computer and use it in GitHub Desktop.
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