#!/usr/bin/env python # coding: utf-8 # ## Basic support for plot.ly backend # # Currently, it is based on matplolib and automatic translation of this into plot.ly. Only bar, line and scatter are supported. # In[1]: from physt.examples import normal_h2, normal_h1 from physt.plotting import plotly import physt.plotting physt.plotting.set_default_backend("plotly") # In[2]: import plotly.offline as po po.init_notebook_mode() # In[3]: H = normal_h1() # In[4]: H.plot.bar() # In[5]: H.plot.line(color="red", lw=5, yscale="log") # In[6]: H.plot.scatter(s=100, cmap="rainbow")