Last active
April 12, 2018 16:12
-
-
Save blaylockbk/2a59b4c7492caa1e62858eee8f1ed5c9 to your computer and use it in GitHub Desktop.
Python Legends
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
| # More here: http://matplotlib.org/api/legend_api.html | |
| # No boarder, transparent frame | |
| legend = ax1.legend(frameon=True, framealpha=.5) | |
| legend.get_frame().set_linewidth(0) | |
| # Limit scatterpoints in legend | |
| plt.legend(scatterpoints=1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment