Created
November 9, 2020 13:24
-
-
Save Lunchb0ne/ef46ffe637e1ab4162e90fc47171213c to your computer and use it in GitHub Desktop.
Configuring plotly for usage with horizon theme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include this code in your notebook to apply the theming | |
import plotly.io as pio | |
# Custom plotly theme for horizon | |
pio.templates["plotly_dark_horizon"] = pio.templates["plotly_dark"] | |
pio.templates["plotly_dark_horizon"]['layout']['paper_bgcolor'] = '#232530' | |
pio.templates["plotly_dark_horizon"]['layout']['plot_bgcolor'] = '#232530' | |
pio.templates.default = 'plotly_dark_horizon' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment