Page 1 of 1

Embedding Plotly Interactive and Editable Visualizations

Posted: Sun Oct 04, 2020 6:25 pm
by Eli
It is now possible to embed Plotly Interactive visualizations on this forum:


How Voters Feel About United States of America Presidential Candidates Truthfulness



See the source for this graph.


GDP Per Capita vs Life Expectancy Across Continents




Some Math




Check this post for embedding procedure. See also labelling options.

Re: Embedding Plotly Interactive and Editable Visualizations

Posted: Thu Oct 08, 2020 9:01 pm
by Eli
3D Scatter plot with Plotly

  1. import plotly.express as px
  2. import chart_studio.plotly as py
  3.  
  4. df = px.data.iris()
  5. fig = px.scatter_3d(df, x='sepal_length', y='sepal_width', z='petal_width',
  6.               color='petal_length', size='petal_length', size_max=18,
  7.               symbol='species', opacity=0.7)
  8. #tight layout
  9. fig.update_layout(margin=dict(l=0, r=0, b=0, t=0))
  10. plot_url = py.plot(fig)


Output: