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.

lmplot legend_out=True not working

See original GitHub issue

Using v 0.3.1 installed via pip, running in ipython notebook, when I run lmplot, the legend is always in the middle of the plot.

Even using the example:

tips = sns.load_dataset('tips')
sns.lmplot('total_bill', 'tip', tips, hue='smoker', fit_reg=False)

The legend lies within the borders of the plot. If I manually set legend_out=True, it still doesn’t affect the results. legend_out1

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Banyccommented, Jan 11, 2021

@tkf When plt.tight_layout() enabled, the problem still exists.

0reactions
tkfcommented, Jul 11, 2017

@blubbi321 It probably is fixed by my PR #1236.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Move legend outside figure in seaborn tsplot - Stack Overflow
The answer by Sergey worked great for me using a seaborn.tsplot but I was not able to get it working for an seaborn.lmplot...
Read more >
seaborn.lmplot — seaborn 0.12.1 documentation - PyData |
This binning only influences how the scatterplot is drawn; the regression is still fit to the original data. This parameter is interpreted either...
Read more >
Python - seaborn.lmplot() method - GeeksforGeeks
seaborn.lmplot() method is used to draw a scatter plot onto a FacetGrid ... (not necessary spaced) bins or the positions of the bin...
Read more >
Lmplot - Seaborn - YouTube
We go over the entirety of seaborn's lmplot. We talk about factor grids and doing conditional linear regression. We talk about logistic, ...
Read more >
Data Visualization with Python and Seaborn — Part 4: LM Plot ...
To begin with, we shall at first try to gain statistical overview of the concept of Linear Regression. As our intention isn't to...
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