Top "Legend" questions

A graph legend is commonly used when plotting several sets of data within the same diagram.

How to show legend for only a specific subset of curves in the plotting?

t = 0 : 0.01 : 2 * pi; s = sin(t); c = cos(t); m = -sin(t); hold on; plot(t, s, 'r'); plot(t, c, …

matlab plot legend
Change main plot legend label text

So far I have been able to label the subplots just fine but I'm having an issue with the main …

python matplotlib pandas label legend
How is order of items in matplotlib legend determined?

I am having to reorder items in a legend, when I don't think I should have to. I try: from …

python matplotlib legend
Show only certain items in legend Python Matplotlib

I currently am plotting a stacked bar graph of a large amount of taxonomic data, and only wish to show …

python matplotlib legend
How to adjust the size of matplotlib legend box?

I have a graph whose left upper corner is quite blank. So I decide to put my legend box there. …

python matplotlib legend
How to edit legend labels in google spreadsheet plots?

I'm trying to plot some data in Google spreadsheet: And as you may see all of the series are in …

plot google-sheets legend
Add pch symbol in R plot legend

I have one time series which is represented by a black line and one which is represented by a red …

r formatting plot legend
Label minimum and maximum of scale fill gradient legend with text: ggplot2

I have a plot created in ggplot2 that uses scale_fill_gradientn. I'd like to add text at the minimum …

r ggplot2 label legend fill
Matplotlib savefig with a legend outside the plot

Reading the following article, I managed to put a legend outside plot. How to put the legend out of the …

python matplotlib legend
Is it possible to add a string as a legend item in matplotlib

I am producing some plots in matplotlib and would like to add explanatory text for some of the data. I …

python matplotlib pandas legend legend-properties