O'Reilly logo

Raspberry Pi Cookbook for Python Programmers by Tim Cox

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Logging and plotting data

Now that we are able to sample and collect a lot of data, it is important that we can capture and analyze it. We will make use of a Python library called matplotlib, which includes lots of useful tools for manipulating, graphing, and analyzing data. We will use pyplot (which is a part of matplotlib) to produce graphs of our captured data. For more information on pyplot, go to http://matplotlib.org/users/pyplot_tutorial.html.

Getting ready

To use pyplot, we will need to install matplotlib.

Note

Due to a problem with the matplotlib installer, performing the installation using pip-3.2 doesn't always work correctly. The method that follows will overcome this problem by performing all the steps PIP does manually; however, this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required