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

The background color of the chart is black #191

Closed
CrystalWindSnake opened this issue Jun 25, 2019 · 2 comments
Closed

The background color of the chart is black #191

CrystalWindSnake opened this issue Jun 25, 2019 · 2 comments
Labels
bug 🐛 Something isn't working

Comments

@CrystalWindSnake
Copy link

Describe the bug
issue
The background color of the chart is black。

Version information:
Version information.txt

my code is:

profile = df.profile_report(title='Pandas Profiling Report')
profile.to_file(output_file="output.html")

Thank you!

@CrystalWindSnake CrystalWindSnake added the bug 🐛 Something isn't working label Jun 25, 2019
@sbrugman
Copy link
Collaborator

Thank you for reporting. I could only reproduce this by using the following code:

import matplotlib.pyplot as plt
plt.style.use(['dark_background'])

It might be that the pandas_profiling.mplstyle is not loaded, which contains figure.facecolor: white. You could try to explicitly set the figure.facecolor. Is there any clue as to whether other packages/pieces of code change the style?

@CrystalWindSnake
Copy link
Author

you for your reply.
I seem to have found the cause of the problem.I am executing my python code in vs code,but I am using interactive mode.Probably because vs code forced the color to be modified.When I call python normally, everything works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants