Top "Legend" questions

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

How to set font size of Matplotlib axis Legend?

I have a code like this: import matplotlib.pyplot as plt from matplotlib.pyplot import * from matplotlib.font_manager import …

python matplotlib font-size legend
Plot labels at ends of lines

I have the following data (temp.dat see end note for full data) Year State Capex 1 2003 VIC 5.356415 2 2004 VIC 5.765232 3 2005 VIC 5.247276 4 2006 VIC 5.579882 5 2007 …

r ggplot2 legend
Adding a chart legend in D3

I am having trouble adding a chart legend to my d3js chart. Here is my current approach: var legend = …

d3.js legend
How do I assign multiple labels at once in matplotlib?

I have the following dataset: x = [0, 1, 2, 3, 4] y = [ [0, 1, 2, 3, 4], [5, 6, 7, 8, 9], [9, 8, 7, 6, 5] ] Now I plot it with: import matplotlib.pyplot as plt plt.plot(x, …

matplotlib label legend
Remove extra legends in ggplot2

I have a simple data frame that I'm trying to do a combined line and point plot using ggplot2. Supposing …

r ggplot2 legend
r legend trouble , how to change the text size in legend

I think cex doesn't work. Cex will change the whole scale of the legend. But I just want to enlarge …

r plot legend
creating over 20 unique legend colors using matplotlib

I am plotting 20 different lines on a single plot using matplotlib. I use a for loop for plotting and label …

python matplotlib legend
How to position the legend inside a fieldset with a border?

According to the several references on the web, it is not possible to position a legend. So it is suggested …

css forms legend fieldset
matplotlib: 2 different legends on same graph

I have a plot where different colors are used for different parameters, and where different line styles are used for …

python matplotlib legend
plot functions with filled point symbols and legend

I want to plot two functions in different colors and point styles with a corresponding legend, in plain R. I …

r plot legend