<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>plotly on Tom Roth</title><link>https://tomroth.dev/tags/plotly/</link><description>Recent content in plotly on Tom Roth</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Thu, 18 Apr 2019 00:00:00 +0000</lastBuildDate><atom:link href="https://tomroth.dev/tags/plotly/index.xml" rel="self" type="application/rss+xml"/><item><title>Change your plot theme for plotly or plotly_express</title><link>https://tomroth.dev/plotly-theme/</link><pubDate>Thu, 18 Apr 2019 00:00:00 +0000</pubDate><guid>https://tomroth.dev/plotly-theme/</guid><description>I made a scatter plot with plotly_express.
It didn&amp;rsquo;t look good. So I wondered how to change the theme.
It took me way too long to figure out.
First I looked through the documentation here. I didn&amp;rsquo;t seem to see any relevant source code. Instead was a bunch of stuff about creating a new theme. Not useful.
Finally I found code like fig.layout.template = 'plotly_dark' buried in an image. Turns out that&amp;rsquo;s how you do it.</description></item></channel></rss>