plotly and cufflinks
By using cufflinks, we can use the iplot method directly on a pandas DataFrame. To create the previous plot, we used subplots (subplots=True), specified the shape of the figure (shape=(3,1)), indicated that the plots share the x-axis (shared_xaxes=True), and added the title (title='MSFT time series'). By default, the selected type of plot is a line chart (kind='line').
One note about using plotly in Jupyter—in order to share a notebook with the option to view the plot (without running the script again), you should use nbviewer or render the notebook as an HTML file and share it then.
The extra line of code cf.set_config_file(world_readable=True, theme='pearl', offline=True) sets up the configuration (such as the current ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access