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.

Possible to hide legend?

See original GitHub issue

R ggplot supports theme(legend.position = "none"), but plotnine doesn’t appear to recognize 'none' in theme(legend_position='none').

Is there another way to do this, or is this a feature that would need to be added?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
gaw89commented, Jun 4, 2018

For anyone else looking at this in the future, I was also able to hide the legend by adding show_legend=False in my call to the geom.

(ggplot(mpg)
+ geom_point(aes(x='displ', y='hwy', color='class', show_legend=False))
)
1reaction
jonjoncardosocommented, Mar 4, 2018

A workaround for this in the meantime is to set guide=False in scale_* functions

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to remove a legend label without removing the data series
In Excel 2016 it is same, but you need to click twice. ... - Then click on the specific legend which you want...
Read more >
How to show or hide a chart legend or data table in Excel
With Microsoft Excel, you can show or hide the legend of a chart. Showing a legend can give readers more information about the...
Read more >
How to hide legend with Plotly Express and Plotly
After creating the figure in plotly, to disable the legend you can make use of this command: fig.update_layout(showlegend=False).
Read more >
Hide legend | WordPress.org
I would like to hide the label (and therefore enforce showing all feeds) as this takes a lot of space on top of...
Read more >
Its possible to hide one legend item? - Plotly Community Forum
Its possible to hide one legend item? ... Hi @yuricda96, graph_objects traces have a showlegend keyword argument which you can set to False....
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