<Fig>.update_layout(margin=dict(t=<spanclass="hljs-number">0</span>, r=<spanclass="hljs-number">0</span>, b=<spanclass="hljs-number">0</span>, l=<spanclass="hljs-number">0</span>)) <spanclass="hljs-comment"># Also `paper_bgcolor='rgb(0, 0, 0)'`.</span>
<Fig>.write_html/json/image(<spanclass="hljs-string">'<path>'</span>) <spanclass="hljs-comment"># <Fig>.show() displays the plot.</span>
</code></pre>
<pre><codeclass="python language-python hljs"><Fig> = px.area/bar/box(<DF>, x=col_key, y=col_key) <spanclass="hljs-comment"># Also `color=col_key`.</span>
<Fig> = px.scatter(<DF>, x=col_key, y=col_key) <spanclass="hljs-comment"># Also `color/size/symbol=col_key`.</span>
<Fig> = px.scatter_3d(<DF>, x=col_key, y=col_key, …) <spanclass="hljs-comment"># `z=col_key`. Also color/size/symbol.</span>
<Fig> = px.histogram(<DF>, x=col_key) <spanclass="hljs-comment"># Also `nbins=<int>`.</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>