#!/usr/bin/env python # coding: utf-8 # # TEST OF Plotly # with a peek at its data structure # In[1]: import plotly.express as px # In[ ]: # ### Test of a line figure # In[2]: fig = px.line(x=["a","b","c"], y=[1,3,2], title="sample figure") fig.show() # In[3]: print(fig) # In[4]: print(fig.data) # In[5]: print(fig.layout) # In[ ]: # In[ ]: # ### Test of a barplot # In[6]: fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2]) fig.show() # In[7]: import plotly.graph_objects as go # In[8]: fig_widget = go.FigureWidget(fig) fig_widget # In[ ]: