Skip to main content

Questions tagged [legend]

A graph legend is commonly used when plotting several sets of data within the same diagram. The legend associates each plot with its corresponding data.

legend
1,296 questions with no upvoted or accepted answers
4 votes
0 answers
573 views

How to manually scale a continuous legend in a seaborn scatterplot?

I'm creating a scatterplot with seaborn like this: plt.figure(figsize=(20,5)) ax = sns.scatterplot(x=x, y=y, hue=errors, s=errors*20, alpha=0.8, edgecolors='w')...
Chris's user avatar
  • 1,306
4 votes
1 answer
327 views

How can I make a cyclic, donut-like color legend in ggplot?

CONTEXT I have some data that looks like this: val = 0:100 sample_data = data.frame( t=val, px=cos(2*pi*val/100), py=sin(2*pi*val/100), v_angle = (val*360/100 + 90) %% 360 ) I am ...
Max Candocia's user avatar
  • 4,407
4 votes
1 answer
1k views

R ggplot 2 legend border issue

I know this is minor, but it's for a publication and will drive me crazy. The bottom of the P0688 box is like 1-2 pixels thinner than the rest. I don't want to make the borders thicker because then it ...
Paul Manley's user avatar
4 votes
0 answers
3k views

how to give custom design (icons) for point Style of chart js legends?

I have a chart which designed based on a mock-up but the the mock-up chart has used custom icons for legends pointStyles which basically i couldn't find them in chart JS itself, i tried different ...
Sajad Haibat's user avatar
4 votes
0 answers
3k views

matplotlib: multiple legends in each single subplot

I know how to split the legend of a plot into two separate legends: x = np.linspace(0,1) y1 = x y2 = 2*x fig, ax = plt.subplots() fig.set_size_inches((8,8)) points = [] pnts = ax.scatter(x, y1, c='...
GRquanti's user avatar
  • 534
4 votes
1 answer
1k views

How to reduce white space in octave legend function

I have build some algorithm and now I should make things pretty enough for presentation. Only problem what I have is a "strange" legend behaviour in octave. I dont know if the problem is because I am ...
Pukaai's user avatar
  • 377
4 votes
0 answers
2k views

Safari 11 Bug Fieldset-Legend with Overflow Hidden and Click

Since Safari 11 for Mac checkboxes (and links/other click-events) are inaccessible when placed in a <legend>, does anyone know of a workaround? JS fiddle contains a demo, neither the checkbox ...
elveti's user avatar
  • 2,356
4 votes
0 answers
450 views

in R, creating multi column legend in ggplotly

How do you spread a legend over multiple columns in ggplotly? The answer here makes it obvious how to do so using ggplot() - however that code doesn't seem to work when I use ggplotly() library(...
val's user avatar
  • 1,689
4 votes
1 answer
945 views

JVectorMap: update legend

I'm using JVectorMap to show a map with colored countries. The map also includes a legend and an onRegionTipShow. In my application it's possible to alter the values the map is based on. After doing ...
Newton's user avatar
  • 53
4 votes
0 answers
7k views

r-legend in stacked bar plot

I'm relatively new to R and struggling to get my legend in the correct place. I've had a good look online and just can't seem to figure it out. # rating no yes # 1 140 38 # 2 72 46 # ...
N Gross's user avatar
  • 41
4 votes
0 answers
2k views

Plot legend problems using R. Help removing excessive white space in legend box

I am creating a plot of some hydrology data and I am having trouble with the legend. The legend has a large amount of blank space around the text. I have tried using par(mar= list), cex, x.intersp, ...
blinid's user avatar
  • 41
4 votes
0 answers
3k views

How to properly propagate multiplex signal names to scope legend via bus system? (Simulink)

I substituted my originial question, the problem is still the same, but the conditions are now different. To review the original question, have a look at the revisions. I'm looking for a way to ...
Robert Seifert's user avatar
3 votes
0 answers
97 views

In a quiver plot with ShowArrowHead = 'off', how do I keep the arrowhead from displaying in the legend as well?

When plotting with quiver() and setting the 'ShowArrowHead' property to 'off', the arrowheads aren't shown in the plot (as expected). However, the legend entry still shows an arrowhead. I would expect ...
localhost's user avatar
3 votes
0 answers
62 views

Plot a boolean/qualitative table with R

I am looking for a way to create a table in R for categorical data. The elements in the table should be symbols, and these symbols should be displayed in a legend. This table from the ICILS 2018 ...
saykodelikat's user avatar
3 votes
0 answers
249 views

Plotly legend marker opacity and spacing

Is it possible to access the symbols in a legend? I would like to set their opacity to a higher value than the opacity of my trace markers, and ideally I would like to make them tighter (in the sense ...
Tim Kirkwood's user avatar

15 30 50 per page
1
2
3 4 5
87