Capstone Project: MucleHub A/B Test

Here is a link to a presentation of my findings from the MuscleHub A/B test data:

My graphs did not turn out very good when I put them on a dark background in the presentation, is there a simple way to remove the white background in the graphs when I am creating them? Or even to change the font colour to white so that it would match my presentation?

I realise the simple solution is to present them on a white background but for future reference being able to make these changes will probably be helpful, thanks for looking!

I think you can change the font family, fontsize and font color by adding the parameters. I don’t know how to change the background of the plots. Your (easiest) best bet would to not have a black background for a presentation.

See:
https://www.codespeedy.com/how-to-change-font-color-in-matplotlib-python/

And:
https://stackoverflow.com/questions/21321670/how-to-change-fonts-in-matplotlib-python

1 Like

You can change the background color in matplotlib:
ex:
plt.figure(figsize=(10,6))
ax = plt.axes()

ax.set_facecolor(“grey”)

https://www.codespeedy.com/change-background-color-in-matplotlib-with-python/

1 Like

Thanks for the help, this is great!

Sure! No problem.
Let me know if it actually works.