Top "Legend" questions

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

scatter plot with legend colored by group without multiple calls to plt.scatter

pyplot.scatter allows for passing to c= an array that corresponds to groups, which will then color the points based …

python matplotlib legend scatter
Draw a box around a legend ggplot2

I created a plot with a custom legend in ggplot2. I tried to draw a box around all the items …

r ggplot2 legend legend-properties
seaborn: legend with background color

The following question explains how to change the background color of a legend: matplotlib legend background color. However, if I …

python plot legend seaborn
pyplot combine multiple line labels in legend

I have data that results in multiple lines being plotted, I want to give these lines a single label in …

python matplotlib plot legend
Angular ngx-charts options for customizing the Legend?

I am currently using ngx-charts for Angular2, and I would like to customize some legends, e.g. place the legend …

angular legend ngx-charts
ggplot legend showing transparency and fill color

I'm plotting two semi-transparent ribbons together. Using the code below, without the scale_fill_manual portion, I get basically what …

r ggplot2 legend alpha-transparency
Fieldset: Center legend

as asked many times before (but never really answered) I want to center a legend in a fieldset. The trick …

css center legend fieldset
How to make two markers share the same label in the legend using matplotlib?

What I want is like this: What I get is this: So how to merge the markers into one label? …

python matplotlib label legend marker
How to disable legend in nvd3 or limit it's size

I'm using nvd3 and have a few charts where the legend is much to large. E.g. a scatter/bubble …

d3.js legend scatter-plot nvd3.js bubble-chart
R ggplot2 legend inside the figure

So, I have the following data.frame, and I want to generate two plots in one graph for yval vs. …

r ggplot2 legend facet