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

When only 3 rows in data sets, scatter plots uses grey-scale colors. #920

Closed
cammil opened this issue May 10, 2016 · 3 comments
Closed

When only 3 rows in data sets, scatter plots uses grey-scale colors. #920

cammil opened this issue May 10, 2016 · 3 comments

Comments

@cammil
Copy link

cammil commented May 10, 2016

4 or more rows appears to use the expected color palette. However 3 uses unexpected black-grey-white colours for the points.

@mmagnuski
Copy link

Are you referring to a specific seaborn plotting function?
Generally - matplotlib's scatter can act weird with 3 points - RGB values are interpreted as colormap values. The documentation of scatter says that color would be read as rgb (not as colormap values) if it is a 2d numpy array (1 by 3). Unfortunatelly I've had problems with 1 by 3 too. Only when I passed a 3 by 3 (the same rgb vavlues for each observation) it worked well.

@cammil
Copy link
Author

cammil commented May 10, 2016

I checked with lmplot, regplot and pairplot (off diagonal plots). They all produced 3 dots which were white, grey and black.

@mwaskom
Copy link
Owner

mwaskom commented May 10, 2016

Duplicate of #840

@mwaskom mwaskom closed this as completed May 10, 2016
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

3 participants