Python Data Visualization Cookbook - Second Edition

Over 70 recipes to get you started with popular Python libraries based on the principal concepts of data visualization
Preview in Mapt

Python Data Visualization Cookbook - Second Edition

Igor Milovanović, Dimitry Foures, Giuseppe Vettigli

1 customer reviews
Over 70 recipes to get you started with popular Python libraries based on the principal concepts of data visualization
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Python Data Visualization Cookbook - Second Edition Book Cover
Python Data Visualization Cookbook - Second Edition
$ 35.99
$ 25.20
Data Visualization with D3 4.x Cookbook - Second Edition Book Cover
Data Visualization with D3 4.x Cookbook - Second Edition
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $36.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781784396695
Paperback302 pages

Book Description

Python Data Visualization Cookbook will progress the reader from the point of installing and setting up a Python environment for data manipulation and visualization all the way to 3D animations using Python libraries. Readers will benefit from over 60 precise and reproducible recipes that will guide the reader towards a better understanding of data concepts and the building blocks for subsequent and sometimes more advanced concepts.

Python Data Visualization Cookbook starts by showing how to set up matplotlib and the related libraries that are required for most parts of the book, before moving on to discuss some of the lesser-used diagrams and charts such as Gantt Charts or Sankey diagrams. Initially it uses simple plots and charts to more advanced ones, to make it easy to understand for readers. As the readers will go through the book, they will get to know about the 3D diagrams and animations. Maps are irreplaceable for displaying geo-spatial data, so this book will also show how to build them. In the last chapter, it includes explanation on how to incorporate matplotlib into different environments, such as a writing system, LaTeX, or how to create Gantt charts using Python.

Table of Contents

Chapter 1: Preparing Your Working Environment
Introduction
Installing matplotlib, NumPy, and SciPy
Installing virtualenv and virtualenvwrapper
Installing matplotlib on Mac OS X
Installing matplotlib on Windows
Installing Python Imaging Library (PIL) for image processing
Installing a requests module
Customizing matplotlib's parameters in code
Customizing matplotlib's parameters per project
Chapter 2: Knowing Your Data
Introduction
Importing data from CSV
Importing data from Microsoft Excel files
Importing data from fixed-width data files
Importing data from tab-delimited files
Importing data from a JSON resource
Exporting data to JSON, CSV, and Excel
Importing and manipulating data with Pandas
Importing data from a database
Cleaning up data from outliers
Reading files in chunks
Reading streaming data sources
Importing image data into NumPy arrays
Generating controlled random datasets
Smoothing the noise in real-world data
Chapter 3: Drawing Your First Plots and Customizing Them
Introduction
Defining plot types – bar, line, and stacked charts
Drawing simple sine and cosine plots
Defining axis lengths and limits
Defining plot line styles, properties, and format strings
Setting ticks, labels, and grids
Adding legends and annotations
Moving spines to the center
Making histograms
Making bar charts with error bars
Making pie charts count
Plotting with filled areas
Making stacked plots
Drawing scatter plots with colored markers
Chapter 4: More Plots and Customizations
Introduction
Setting the transparency and size of axis labels
Adding a shadow to the chart line
Adding a data table to the figure
Using subplots
Customizing grids
Creating contour plots
Filling an under-plot area
Drawing polar plots
Visualizing the filesystem tree using a polar bar
Customizing matplotlib with style
Chapter 5: Making 3D Visualizations
Introduction
Creating 3D bars
Creating 3D histograms
Animating in matplotlib
Animating with OpenGL
Chapter 6: Plotting Charts with Images and Maps
Introduction
Processing images with PIL
Plotting with images
Displaying images with other plots in the figure
Plotting data on a map using Basemap
Plotting data on a map using the Google Map API
Generating CAPTCHA images
Chapter 7: Using the Right Plots to Understand Data
Introduction
Understanding logarithmic plots
Understanding spectrograms
Creating stem plot
Drawing streamlines of vector flow
Using colormaps
Using scatter plots and histograms
Plotting the cross correlation between two variables
Importance of autocorrelation
Chapter 8: More on matplotlib Gems
Introduction
Drawing barbs
Making a box-and-whisker plot
Making Gantt charts
Making error bars
Making use of text and font properties
Rendering text with LaTeX
Understanding the difference between pyplot and OO API
Chapter 9: Visualizations on the Clouds with Plot.ly
Introduction
Creating line charts
Creating bar charts
Plotting a 3D trefoil knot
Visualizing maps and bubbles

What You Will Learn

  • Introduce yourself to the essential tooling to set up your working environment
  • Explore your data using the capabilities of standard Python Data Library and Panda Library
  • Draw your first chart and customize it
  • Use the most popular data visualization Python libraries
  • Make 3D visualizations mainly using mplot3d
  • Create charts with images and maps
  • Understand the most appropriate charts to describe your data
  • Know the matplotlib hidden gems
  • Use plot.ly to share your visualization online

Authors

Table of Contents

Chapter 1: Preparing Your Working Environment
Introduction
Installing matplotlib, NumPy, and SciPy
Installing virtualenv and virtualenvwrapper
Installing matplotlib on Mac OS X
Installing matplotlib on Windows
Installing Python Imaging Library (PIL) for image processing
Installing a requests module
Customizing matplotlib's parameters in code
Customizing matplotlib's parameters per project
Chapter 2: Knowing Your Data
Introduction
Importing data from CSV
Importing data from Microsoft Excel files
Importing data from fixed-width data files
Importing data from tab-delimited files
Importing data from a JSON resource
Exporting data to JSON, CSV, and Excel
Importing and manipulating data with Pandas
Importing data from a database
Cleaning up data from outliers
Reading files in chunks
Reading streaming data sources
Importing image data into NumPy arrays
Generating controlled random datasets
Smoothing the noise in real-world data
Chapter 3: Drawing Your First Plots and Customizing Them
Introduction
Defining plot types – bar, line, and stacked charts
Drawing simple sine and cosine plots
Defining axis lengths and limits
Defining plot line styles, properties, and format strings
Setting ticks, labels, and grids
Adding legends and annotations
Moving spines to the center
Making histograms
Making bar charts with error bars
Making pie charts count
Plotting with filled areas
Making stacked plots
Drawing scatter plots with colored markers
Chapter 4: More Plots and Customizations
Introduction
Setting the transparency and size of axis labels
Adding a shadow to the chart line
Adding a data table to the figure
Using subplots
Customizing grids
Creating contour plots
Filling an under-plot area
Drawing polar plots
Visualizing the filesystem tree using a polar bar
Customizing matplotlib with style
Chapter 5: Making 3D Visualizations
Introduction
Creating 3D bars
Creating 3D histograms
Animating in matplotlib
Animating with OpenGL
Chapter 6: Plotting Charts with Images and Maps
Introduction
Processing images with PIL
Plotting with images
Displaying images with other plots in the figure
Plotting data on a map using Basemap
Plotting data on a map using the Google Map API
Generating CAPTCHA images
Chapter 7: Using the Right Plots to Understand Data
Introduction
Understanding logarithmic plots
Understanding spectrograms
Creating stem plot
Drawing streamlines of vector flow
Using colormaps
Using scatter plots and histograms
Plotting the cross correlation between two variables
Importance of autocorrelation
Chapter 8: More on matplotlib Gems
Introduction
Drawing barbs
Making a box-and-whisker plot
Making Gantt charts
Making error bars
Making use of text and font properties
Rendering text with LaTeX
Understanding the difference between pyplot and OO API
Chapter 9: Visualizations on the Clouds with Plot.ly
Introduction
Creating line charts
Creating bar charts
Plotting a 3D trefoil knot
Visualizing maps and bubbles

Book Details

ISBN 139781784396695
Paperback302 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Mastering Python Data Visualization Book Cover
Mastering Python Data Visualization
$ 43.99
$ 30.80
Python Machine Learning Book Cover
Python Machine Learning
$ 35.99
$ 25.20
Practical Data Science Cookbook Book Cover
Practical Data Science Cookbook
$ 29.99
$ 21.00
Python Data Analysis Book Cover
Python Data Analysis
$ 29.99
$ 21.00
Practical Machine Learning Book Cover
Practical Machine Learning
$ 37.99
$ 26.60
IPython Interactive Computing and Visualization Cookbook Book Cover
IPython Interactive Computing and Visualization Cookbook
$ 29.99
$ 21.00