<Fig>.update_layout(paper_bgcolor=<spanclass="hljs-string">'rgb(0, 0, 0)'</span>) <spanclass="hljs-comment"># Also `margin=dict(t=0, r=0, b=0, l=0)`.</span>
<Fig>.write_html/json/image(<spanclass="hljs-string">'<path>'</span>) <spanclass="hljs-comment"># `<Fig>.show()` displays the plot.</span>
<Fig>.write_html/json/image(<spanclass="hljs-string">'<path>'</span>) <spanclass="hljs-comment"># Use <Fig>.show() to display the plot.</span>
</code></pre>
<pre><codeclass="python language-python hljs"><Fig> = px.area/bar/box(<DF>, x=col_key, y=col_keys) <spanclass="hljs-comment"># Also `color=col_key`. All are optional.</span>
<Fig> = px.scatter(<DF>, x=col_key, y=col_keys) <spanclass="hljs-comment"># Also `color/size/symbol=col_key`. Same.</span>
<Fig> = px.histogram(<DF>, x=col_keys, y=col_key) <spanclass="hljs-comment"># Also `nbins=<int>`. All are optional.</span>
<Fig> = px.histogram(<DF>, x=col_keys, y=col_key) <spanclass="hljs-comment"># Also color, nbins. All are optional.</span>
</code></pre>
<div><h4id="displaysalinechartoftotalcoronavirusdeathspermilliongroupedbycontinent">Displays a line chart of total coronavirus deaths per million grouped by continent:</h4><p></p><divid="2a950764-39fc-416d-97fe-0a6226a3095f"class="plotly-graph-div"style="height:312px; width:914px;"></div><pre><codeclass="python language-python hljs">covid = pd.read_csv(<spanclass="hljs-string">'https://raw.githubusercontent.com/owid/covid-19-data/8dde8ca49b'</span>