Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relplot must assign a list or a column name in the "size" parameter #2330

Closed
FrankBGao opened this issue Oct 22, 2020 · 1 comment
Closed

Comments

@FrankBGao
Copy link

FrankBGao commented Oct 22, 2020

https://seaborn.pydata.org/examples/scatter_bubbles.html

import seaborn as sns
sns.set_theme(style="white")

mpg = sns.load_dataset("mpg")

sns.relplot(x="horsepower", y="mpg", hue="origin", size="weight",
            sizes=(40, 400), alpha=.5, palette="muted",
            height=6, data=mpg)

In the version 0.10.0, I could assign size=1, in the sns.relplot(), there is no error.
In the version 0.10.1, I will gain an error "TypeError: object of type 'int' has no len()".
I must assign size be "size=[1] * len(mpg)".

@mwaskom
Copy link
Owner

mwaskom commented Oct 22, 2020

Duplicate of #2279

@mwaskom mwaskom marked this as a duplicate of #2279 Oct 22, 2020
@mwaskom mwaskom closed this as completed Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants