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

No scatterplot for regplot() for iPython notebook inline plotting or saving figures #370

Closed
dylanfried opened this issue Nov 19, 2014 · 1 comment

Comments

@dylanfried
Copy link

Note: This may be an upstream bug.

For simple regplots (that work fine when run from the command line or a script), when either: 1) plotted inline in an iPython notebook or 2) saved to disk using the matplotlib save, the scatter points don't show up. The regression line still appears, but there are no scatter points to be found.

Reproducing the bug
This pops up a matplotlib window with a graph that looks correct. When saving the png to disk, however, the scatter points also disappear.

import seaborn as sns
import matplotlib.pyplot as plt
iris = sns.load_dataset("iris")
fg = sns.regplot("sepal_length","sepal_width",iris)
plt.show()

However, when doing this in an iPython notebook and adding the inline plotting, the scatter points don't show up:

%matplotlib inline
import seaborn as sns
import matplotlib.pyplot as plt
iris = sns.load_dataset("iris")
fg = sns.regplot("sepal_length","sepal_width",iris)

image

@mwaskom
Copy link
Owner

mwaskom commented Nov 19, 2014

See #344

@mwaskom mwaskom closed this as completed Nov 19, 2014
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