Graphing data using Plotly: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== 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 f...") |
No edit summary |
||
| Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
* In this lesson we are going to learn how to graph data collected from our environmental sensors. | * 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. | * 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. | * 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. | * Graphing sensor data is very important because it shows trends and changes in data more clearly. | ||
| Line 9: | Line 9: | ||
* Learn how to import data from files using pandas | * Learn how to import data from files using pandas | ||
* Learn how to add more formatting options in plotly | * 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 | |||
[[File:Screen Shot 2021-12-30 at 6.00.15 pm.png]] | |||
* The installation process will take approximately one minute. | |||
[[File:Screen Shot 2021-12-30 at 6.01.09 pm.png]] | |||
Revision as of 07:01, 30 December 2021
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.

