Book Image

Learning Python Data Visualization

By : Chad R. Adams
Book Image

Learning Python Data Visualization

By: Chad R. Adams

Overview of this book

<p>The best applications use data and present it in a meaningful, easy-to-understand way. Packed with sample code and tutorials, this book will walk you through installing common charts, graphics, and utility libraries for the Python programming language.</p> <p>Firstly you will discover how to install and reference libraries in Visual Studio or Eclipse. We will then go on to build simple graphics and charts that allow you to generate HTML5-ready SVG charts and graphs, along with testing and validating your data sources. We will also cover parsing data from the Web and offline sources, and building a Python charting application using dynamic data. Lastly, we will review other popular tools and frameworks used to create charts and import/export chart data. By the end of this book, you will be able to represent complex sets of data using Python.</p>
Table of Contents (16 chapters)
Learning Python Data Visualization
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The matplotlib library


In the Python world of graphics and data charting, one of the most popular libraries out there is matplotlib. While the name may sound silly, matplotlib is simply put, a 2D and 3D plotting library that generates production quality, hardcopy graphics and charts. Now, the matplotlib library can be easy to work with early on, but it can get very complex quickly.

Remember back in Chapter 2, Python Refresher, we discussed creating our own graphics, and charts from scratch? Well, matplotlib allows us to not only build charts and graphs, but also draw graphics, widgets, and run animations both in 2D static images and 3D objects created within the framework. Check out the examples on the matplotlib website: http://matplotlib.org/examples/index.html.

Installing the matplotlib library

Remember back at the start of Chapter 3, Getting Started with pygal, pygal required the installation of lxml? Well, so does matplotlib, but with a different set of libraries, on Linux systems; matplotlib...