Free Sample
+ Collection

Learning Python Data Visualization

Chad R. Adams

Master how to build dynamic HTML5-ready SVG charts using Python and the pygal library
RRP $28.99
RRP $47.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781783553334
Paperback212 pages

About This Book

  • A practical guide that helps you break into the world of data visualization with Python
  • Understand the fundamentals of building charts in Python
  • Packed with easy-to-understand tutorials for developers who are new to Python or charting in Python

Who This Book Is For

If you are a Python novice or an experienced developer and want to explore data visualization libraries, then this is the book for you. No prior charting or graphics experience is needed.

Table of Contents

Chapter 1: Setting Up Your Development Environment
Setting up Python on Windows
Exploring the Python installation in Windows
Python editors
Setting up Python on Mac OS X
Setting up Python on Ubuntu
Chapter 2: Python Refresher
Python basics
Creating SVG graphics using svgwrite
Chapter 3: Getting Started with pygal
Why use pygal?
Stacked line charts
Simple bar charts
Stacked bar charts
Horizontal bar charts
XY charts
Scatter plots
DateY charts
Chapter 4: Advanced Charts
Pie charts
Radar charts
Box plots
Dot charts
Funnel charts
Gauge charts
Pyramid charts
Worldmap charts
Chapter 5: Tweaking pygal
Country charts
Label settings
Chart title settings
Displaying no data
pygal themes
Chapter 6: Importing Dynamic Data
Pulling data from the Web
The XML refresher
RSS and the ATOM
Understanding HTTP
Parsing XML in Python with HTTP
About JSON
Parsing JSON in Python with HTTP
JSONP with Python
Chapter 7: Putting It All Together
Chart usage for a blog
Python modules
Modifying our RSS to return values
Project improvements
Chapter 8: Further Resources
The matplotlib library

What You Will Learn

  • Build different types of Python charts and graphs
  • Master how to build Python graphics libraries
  • Test and validate your data sources
  • Explore common Python libraries for charts and graphics
  • Build charts using dynamic data from offline and online sources
  • Use CSS to modify embedded SVG images in HTML pages
  • Install and write Python code on Windows, Mac, or Linux
  • Discover how to install and reference libraries in Visual Studio or Eclipse

In Detail

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.

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.


Read More

Recommended for You