Setup
All you need for this project is the Getting Started Kit.
Install Matplotlib
In order to use Matplotlib, you first have to install it. You do this in the same way you previously installed the Phidget22 library. Simply navigate to your package manager, search for matplotlib and press install!
PyCharm
If you're using PyCharm, select File > Settings > Python Interpreter and use the + symbol to install matplotlib.
PyScripter
If you're using PyScripter, select Tools > Tools > Install Packages with pip and enter matplotlib.
Write Code
Copy the code below into a new Python project. If you need a reminder of how to do this, revisit the Getting Started Course.
Practice
- Try modifying the size variable, what does it do?
- Modify the program to graph data from a different Phidget sensor like distance, or light.