Another way:
ax.legend(labels=mylabels)
More Related Contents:
- matplotlib: colorbars and its text labels
- Is it possible to add a string as a legend item in matplotlib
- Is it possible to add a string as a legend item
- Clustered Stacked Bar in Python Pandas [closed]
- How to put the legend outside the plot in Matplotlib
- Pandas: Adding new column to dataframe which is a copy of the index column
- How to manually create a legend
- Plotting grouped data in same plot using Pandas
- How to add hovering annotations to a plot
- creating over 20 unique legend colors using matplotlib
- How to dynamically update a plot in a loop in IPython notebook (within one cell)
- pandas 0.21.0 Timestamp compatibility issue with matplotlib
- Legend only shows one label when plotting with pandas
- How to remove or hide x-axis labels from a seaborn / matplotlib plot
- Plotting time-series data with seaborn
- Subheadings for categories within matplotlib custom legend
- Styling part of label in legend in matplotlib
- Large Dataset Polynomial Fitting Using Numpy
- How to create a grouped bar plot
- How to change legend fontsize with matplotlib.pyplot
- How to add a string as the artist in matplotlib legend?
- matplotlib y-axis label on right side
- Grouped Bar graph Pandas
- Using pandas crosstab to create a bar plot
- Change the facecolor of boxplot in pandas
- How to annotate a seaborn barplot with the aggregated value
- Discrete legend in seaborn heatmap plot
- Combine two Pyplot patches for legend
- Color a scatter plot by Column Values
- Adding a matplotlib legend