Skip to content

Instantly share code, notes, and snippets.

@mwaskom
Created December 3, 2015 19:49
Show Gist options
  • Select an option

  • Save mwaskom/7be0963cc57f6c89f7b2 to your computer and use it in GitHub Desktop.

Select an option

Save mwaskom/7be0963cc57f6c89f7b2 to your computer and use it in GitHub Desktop.
Use seaborn with a dark background, if you like that sort of thing.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kirktobridge

kirktobridge commented Aug 2, 2019

Copy link
Copy Markdown

Have been searching everywhere to figure out how to do this, thank you

@hughesadam87

hughesadam87 commented Nov 6, 2019

Copy link
Copy Markdown

Yes - thank you! PS - any idea how to add grid?

@pkr404

pkr404 commented Oct 26, 2020

Copy link
Copy Markdown

@hugadams
Just change style="ticks" to style="darkgrid" and add the following line:
plt.rcParams.update({"grid.linewidth":0.5, "grid.alpha":0.5}) # To enhance the grid's aesthetics

@PythonCoderUnicorn

Copy link
Copy Markdown

Thank you for this!

@Irene-123

Copy link
Copy Markdown

A huge thanks to you.

@akshaygupta26

Copy link
Copy Markdown

How do I revert to the original style?

@kboyvlogs

Copy link
Copy Markdown

Thank You!

@vrbabu9000

Copy link
Copy Markdown

Very Helpful my friend! Thank you :)

@zlatko-minev

Copy link
Copy Markdown

Nice!

@wlinds

wlinds commented Nov 11, 2022

Copy link
Copy Markdown

Nice, thanks!

@Azad-Me

Azad-Me commented Feb 16, 2023

Copy link
Copy Markdown

ohh my God Thank you

@sc0v0ne

sc0v0ne commented Feb 24, 2023

Copy link
Copy Markdown

Thanks, you save my eyes.

@Unobtainian

Copy link
Copy Markdown

Thanks!!

@TheMakavelly

Copy link
Copy Markdown

Gracias man...

@sabwhat

sabwhat commented Mar 4, 2024

Copy link
Copy Markdown

Спасибо, Чувак !!!!

@VidalRoschi

Copy link
Copy Markdown

братик

@JackGraymer

Copy link
Copy Markdown

is there a way to define the background color that is not black with plt.style.use("dark_background")
to find a different shade like vscode or similar color
Also is there a way to implement this globally? for the whole notebook? (meaning the custom background color)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment