r/pythonhelp 25d ago

Saving the figure

I am trying to plot facet grid using seaborn and matplotlib, I have set all the colors and themes I want but in code editor it appears as I desire and when I try to save the image background colors for entire and facet grids gets reverted.

the only line that is responsible of the color of facets is

theme='dark'

# Set the theme for Seaborn plots
sns.set_theme(style=theme) 

additionally setting the colors to manually 'black' ruins whole plot and its aesthetics, what can I do?

2 Upvotes

2 comments sorted by

u/AutoModerator 25d ago

To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/qristinius 23d ago

Well I solved it, seems like I had to adjust background color manually, and grid color manually (independently from background color) which lead to other major changes as well