CANCEL
Subscription
0
Your Cart
(0 item)
You have no products in your basket yet
Save more on your purchases!
Buy 3-4 products and each title is $7.99
Buy 5+ products and each title is $4.99
Savings automatically calculated. No voucher code required.
Checkout
Account
Sign in
New User?
Create Account
Your Subscription
Your Owned Titles
Your Account
Your Orders
Change country
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Hungary
Ukraine
Luxembourg
Estonia
Lithuania
South Korea
Turkey
Switzerland
Colombia
Taiwan
Chile
Norway
Ecuador
Indonesia
New Zealand
Cyprus
Denmark
Finland
Poland
Malta
Czechia
Austria
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Netherlands
Bulgaria
Latvia
South Africa
Malaysia
Japan
Slovakia
Philippines
Mexico
Thailand
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
SALE ENDS IN
0
Days
:
00
Hours
:
00
Minutes
:
00
Seconds
GO TO
TOP
You're reading from
Python Data Visualization Cookbook (Second Edition)
Visualize data using Python's most popular libraries
Product type
Paperback
Published in
Nov 2015
Publisher
ISBN-13
9781784396695
Length
302 pages
Edition
1st Edition
Languages
Python
Tools
Matplotlib
Concepts
Data Visualization
Table of Contents
(11) Chapters
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Conventions
Reader feedback
Customer support
1. Preparing Your Working Environment
FREE CHAPTER
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
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
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
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
5. Making 3D Visualizations
Introduction
Creating 3D bars
Creating 3D histograms
Animating in matplotlib
Animating with OpenGL
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
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
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
9. Visualizations on the Clouds with Plot.ly
Introduction
Creating line charts
Creating bar charts
Plotting a 3D trefoil knot
Visualizing maps and bubbles
Index
Chapter 5. Making 3D Visualizations
You will learn the following recipes in this chapter:
Creating 3D bars
Creating 3D histograms
Animating in matplotlib
Animating with OpenGL
The rest of the chapter is locked
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Start free trial
Previous Section
Section 1 of 6
Next Section
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Sign up now
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Start free trial
Renews at
$19.99/month
. Cancel anytime
$9.99 | ALL EBOOKS, VIDEOS & AUDIOBOOKS
Your learning journey starts here: 8000+ learning resources for
$9.99
each!
SHOP NOW
Personalised recommendations for you
Based on your interests and search pattern
Modern Computer Vision with PyTorch
Read more
This book provides a hands-on approach to solving over 30 prominent real-world computer vision problems using PyTorch 2.x on actual datasets. Here you'll learn to build a neural network from scratch and optimize hyperparameters, perform image classification, multi-object detection, segmentation, and more. You'll also explore facial expression manipulation and combining CV with NLP and RL techniques, build generative AI applications, and take your model to production on AWS. By the end of this book, you'll master modern NN architectures and confidently solve real-world CV problems.
Read more
Jun 2024
24h 52m
Data Governance Handbook
Read more
This book provides a highly focused view of real business outcomes powered by data governance, that resonate with non-data executives such as CFOs and CEOs. You'll also find useful insights into how to implement data governance initiatives.
Read more
May 2024
13h 8m
Data Engineering with Databricks Cookbook
Read more
This book shows you how to use Apache Spark, Delta Lake, and Databricks to build data pipelines, manage and transform data, optimize performance, and more. Additionally, you'll implement DataOps and DevOps practices, and orchestrate data workflows.
Read more
May 2024
14h 36m
Azure Data Engineer Associate Certification Guide
Read more
Unlock the power of Azure data engineering with this certification guide, elevating your skills in data processing, storage, and security with the help of practical insights, hands-on exercises, and the latest advancements.
Read more
May 2024
18h 16m
Microsoft Power BI Cookbook
Read more
Microsoft Power BI is the most sought-after platform for BI professionals' visualization needs. Explore the latest Power BI features, future AI enhancements, and integration with other Power Platform tools via new recipes in this updated edition.
Read more
Jul 2024
19h 56m
Python Data Cleaning Cookbook
Read more
The book shows you how to clean, wrangle, and view data from multiple perspectives, including dataset and column attributes. You will cover common and not-so-common challenges that are faced while cleaning messy data for complex situations and learn to manipulate data to get it down to a form that can be useful for making the right decisions.
Read more
May 2024
16h 12m
Microsoft Azure AI Fundamentals AI-900 Exam Guide
Read more
This AI-900 study guide will help you prepare and practice for the certification exam. You'll delve into AI workloads, ML principles, computer vision, NLP, knowledge mining, and generative AI using Azure cloud services.
Read more
May 2024
9h 36m
Using Stable Diffusion with Python
Read more
This book shows you how to use Python to control Stable Diffusion and generate high-quality images. In addition to covering the basic usage of the diffusers package, the book provides solutions for extending the package for more advanced purposes.
Read more
Jun 2024
11h 44m
Getting Started with DuckDB
Read more
This hands-on book teaches you to analyze large datasets with blazing speed and ease. You will learn how to use DuckDB to quickly load, query, transform, analyze, and visualize data effectively through a series of practical examples.
Read more
Jun 2024
12h 44m
Databricks Certified Associate Developer for Apache Spark Using Python
Read more
This guide gets you ready for certification with expert-backed content, key exam concepts, and topic reviews. Additionally, you'll be able to make the most of Apache Spark 3.0 to modernize workloads and more using specific tools and techniques.
Read more
Jun 2024
9h 8m