Generating a legendΒΆ

An example of how to use the legend kwarg to generate a legend.

../_images/sphx_glr_plot_legend_001.png
# Code source: Andrew Heusser
# License: MIT

# import
import hypertools as hyp

# load example data
geo = hyp.load('weights_sample')

# plot
geo.plot(fmt='.', legend=['Group A', 'Group B', 'Group C'])

Total running time of the script: ( 0 minutes 0.088 seconds)

Gallery generated by Sphinx-Gallery