November 2015
Beginner to intermediate
302 pages
6h 17m
English
In this recipe, we will see how to create a line chart. We have already introduced this kind of chart in Chapter 3, Drawing Your First Plots and Customizing Them, and we have seen how to make the plots with matplotlib. This time we'll focus on how to create and share them with Plot.ly.
Before starting, you need to set up your credentials for the Plot.ly platform in the programming environment:
$ python -c "import plotly; plotly.tools.set_credentials_file(username='DemoAccount', api_key='mykey')"
Replace Demo Account and mykey with your Plotly username and API key.
The following code example demonstrates how to plot two curves. In particular, we will:
Read now
Unlock full access