call Legend.get_texts()
will get a list of Text object in the legend object:
import pylab as pl
pl.plot(randn(100), label="randn")
l = legend()
for text in l.get_texts():
text.set_color("red")
More Related Contents:
- How to put the legend outside the plot in Matplotlib
- Secondary axis with twinx(): how to add to legend?
- How to get different colored lines for different plots in a single figure?
- How to manually create a legend
- Matplotlib scatter plot legend
- matplotlib colorbar for scatter
- creating over 20 unique legend colors using matplotlib
- Shifted colorbar matplotlib
- How to set the default color cycle for all subplots with matplotlib?
- Matplotlib scatter plot with legend
- matplotlib: colorbars and its text labels
- How to change the color of the axis, ticks and labels for a plot in matplotlib
- Plot curve with blending line colors with matplotlib/pyplot
- Subheadings for categories within matplotlib custom legend
- increase the linewidth of the legend lines in matplotlib
- Add legend to scatter plot (PCA)
- Named colors in matplotlib
- Change main plot legend label text
- Is it possible to add a string as a legend item in matplotlib
- how to set up a custom font with custom path to matplotlib global font?
- How to load .ttf file in matplotlib using mpl.rcParams?
- matplotlib generic colormap from tab10
- Matplotlib savefig with a legend outside the plot
- Elegantly changing the color of a plot frame in matplotlib
- Combine two Pyplot patches for legend
- Adding a matplotlib legend
- How to plot a scatter plot with a legend label for each class
- How to change the color of the axis, ticks and labels
- Is it possible to add a string as a legend item
- Adding legend based on existing color series