question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create single legend outside plots rather than duplicate legends inside

See original GitHub issue

When creating a plot with .overlay().layout(), I get a legend inside the plotting area of each plot. Since the variables are the same across the layout, all the legends are identical. I’d like to be able to get a single legend outside the plots, rather than multiple legends all inside the plots.

Even when not using .layout(), I’d like to be able to move the .overlay() legend outside the plotting area as in some cases the legend is large.

This is using the bokeh backend, where I believe it’s currently not possible to get a legend outside the plots. I’m not sure if the situation is any different with the matplotlib backend.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:5
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
DancingQuantacommented, Aug 23, 2019

I am interested in creating layout with a shared legend! I think the bokeh layout refactor may have made that easier?

2reactions
NumesSanguiscommented, Feb 14, 2020

Just curious if there is any update on this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create single legend outside plots rather than ... - GitHub
I'd like to be able to get a single legend outside the plots, rather than multiple legends all inside the plots. Even when...
Read more >
How do I make a single legend for many subplots?
I have noticed that none of answers displays an image with a single legend referencing many curves in different subplots, so I have...
Read more >
matplotlib legend outside of graph - YouTube
This matplotlib legend tutorial walks you through basic and advanced options for matplotlib legends using Python code for a series of ...
Read more >
How to Place Legend Outside of the Plot in Matplotlib?
Put the legend outside the plot. As, we can see that the above figure legends overlapped on the graph i.e; incomplete information.
Read more >
Add legend to axes - MATLAB legend - MathWorks
When you want to share a legend between two or more plots, you can display the legend in a separate tile of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found