Graphing data using Plotly
Overview
- In this lesson we are going to learn how to graph data collected from our environmental sensors.
- Data will be graphed using a python package called plotly.
- Plotly can produce graphs in HTML format so that they can be easily displayed on a web page.
- Graphing sensor data is very important because it shows trends and changes in data more clearly.
Learning Objectives
- Learn how to create graphs using plotly
- Learn how to import data from files using pandas
- Learn how to add more formatting options in plotly
Creating graphs using plotly
- In this example we are going to install the plotly python package and then write a program to create some simple graphs.
Installation of the plotly python package
- From the Raspberry Pi top bar menu click on the Terminal icon.
- Open the Terminal and enter the command pip3 install plotly
- pip is short for Pip Installs Python.
- pip3 installs packages for python3
- The installation process will take approximately one minute.

