sns.lmplot doesn't handle ax keyword correctly
See original GitHub issueimport pandas as pd
import pylab as plt
import seaborn as sns
print sns.__version__ # 0.5.1
df = pd.DataFrame({"A":[1,2,3],
"B":[4,5,7]})
fig, ax = plt.subplots(1,1)
sns.lmplot("A","B",df,ax=ax)
#sns.regplot("A","B",df,ax=ax) # regplot works as intended
plt.show()
The output with version 0.5.1
looks like:
Issue Analytics
- State:
- Created 9 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
seaborn: lmplot() got an unexpected keyword argument 'figsize'
Since an lmplot is "figure-level", figsize is determined by two parameters, size and aspect . I think size=7 will do what you want...
Read more >seaborn.lmplot — seaborn 0.12.1 documentation - PyData |
This can be helpful when plotting variables that take discrete values. {scatter,line}_kwsdictionaries. Additional keyword arguments to pass to plt.scatter and ...
Read more >Python – How to add title on seaborn lmplot – iTecNote
I am trying to add title on Searbon lmplot. ax = plt.axes() sns.lmplot(x, y, data=df, hue="hue", ax=ax) ax.set_title("Graph (a)") plt.show().
Read more >Building structured multi-plot grids — seaborn 0.9.0 ...
Some seaborn functions (such as lmplot() , catplot() , and pairplot() ) ... are lists of keyword values, one for each level of...
Read more >Complete Seaborn Python Tutorial for Data Visualization in ...
Now we will draw a plot for the data of type I from the dataset. scatter_kws is used to pass additional keyword arguments....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
How can I plot any seaborn scatter plot that supports subplots and hue???
@gibsondanield read the rest of the sentence: