Embedding Plotly Interactive and Editable Visualizations

Post Reply
User avatar
Eli
Senior Expert Member
Reactions: 183
Posts: 5334
Joined: 9 years ago
Location: Tanzania
Has thanked: 75 times
Been thanked: 88 times
Contact:

#1

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.
1
1 Image
TSSFL -- A Creative Journey Towards Infinite Possibilities!
User avatar
Eli
Senior Expert Member
Reactions: 183
Posts: 5334
Joined: 9 years ago
Location: Tanzania
Has thanked: 75 times
Been thanked: 88 times
Contact:

#2

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:


0
TSSFL -- A Creative Journey Towards Infinite Possibilities!
Post Reply

Return to “Digital Computing”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest