Top "Legend" questions

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

Add legend outside of axes without rescaling in MATLAB

I've got a GUI in MATLAB with a set of axes pre-placed. I'm using the location property of the legend …

matlab plot legend axes
Control ggplot2 legend look without affecting the plot

I'm plotting lines with ggplot2 like this: ggplot(iris, aes(Petal.Width,Petal.Length,color=Species)) + geom_line() + theme_bw() . …

r plot ggplot2 legend
Styling part of label in legend in matplotlib

Is it possible to have part of the text of a legend in a particular style, let's say, bold or …

python matplotlib text customization legend
ggplot2 keep unused levels barplot

I want to plot unused levels (that is, levels where the count is 0) in my bar-plot, however, unused levels are …

r ggplot2 legend levels
increase the linewidth of the legend lines in matplotlib

I know that if I change the linewidth of a line, that is automatically updated in the legend. However I …

python matplotlib legend
How to prevent legend labels being cut off in Google charts

With a Perl script I generate numerous Google Line Charts for 20 and more series of data at once. The legend …

charts legend google-visualization
pandas pie chart plot remove the label text on the wedge

the pie chart example on pandas plotting tutorial http://pandas.pydata.org/pandas-docs/version/0.15.0/visualization.html generates the following figure: …

pandas matplotlib legend pie-chart
How do I change the legend position in a NVD3 chart?

Does anyone know how to reposition the legend in a NVD3 chart relative to the graph itself? It is on …

charts d3.js legend nvd3.js
Making a Legend/Key in GraphViz

I’d like to include a legend or key in my GraphViz diagram. I’m having trouble figuring out what …

graphviz legend
How to change the text color of font in legend?

Is there a way to change the font color of the legend in a matplotlib plot? Specially in occasions where …

python colors fonts matplotlib legend