Skip to content

Instantly share code, notes, and snippets.

@Lunchb0ne
Created November 9, 2020 13:24
Show Gist options
  • Save Lunchb0ne/ef46ffe637e1ab4162e90fc47171213c to your computer and use it in GitHub Desktop.
Save Lunchb0ne/ef46ffe637e1ab4162e90fc47171213c to your computer and use it in GitHub Desktop.
Configuring plotly for usage with horizon theme
# 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