售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Python Data Visualization Cookbook Second Edition
Table of Contents
Python Data Visualization Cookbook Second Edition
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Preparing Your Working Environment
Introduction
Installing matplotlib, NumPy, and SciPy
Getting ready
How to do it...
How it works...
There's more...
Installing virtualenv and virtualenvwrapper
Getting ready
How to do it...
Installing matplotlib on Mac OS X
Getting ready
How to do it...
Installing matplotlib on Windows
Getting ready
How to do it...
There's more...
Installing Python Imaging Library (PIL) for image processing
How to do it...
How it works...
There's more...
Installing a requests module
How to do it...
How it works...
Customizing matplotlib's parameters in code
Getting ready
How to do it...
How it works…
Customizing matplotlib's parameters per project
Getting ready
How to do it...
How it works...
There's more...
2. Knowing Your Data
Introduction
Importing data from CSV
Getting ready
How to do it...
How it works...
There's more...
Importing data from Microsoft Excel files
Getting ready
How to do it...
How it works...
There's more...
Importing data from fixed-width data files
Getting ready
How to do it...
How it works...
Importing data from tab-delimited files
Getting ready
How to do it...
How it works...
There's more...
Importing data from a JSON resource
Getting ready
How to do it...
How it works...
There's more...
Exporting data to JSON, CSV, and Excel
Getting ready
How to do it...
How it works...
There's more...
Importing and manipulating data with Pandas
Getting ready
How to do it...
How it works...
There's more...
Importing data from a database
Getting ready
How to do it...
How it works...
There's more...
Cleaning up data from outliers
Getting ready
How to do it...
There's more...
Reading files in chunks
How to do it...
How it works...
There's more...
Reading streaming data sources
How to do it...
How it works...
There's more...
Importing image data into NumPy arrays
Getting ready
How to do it...
How it works...
There's more...
Generating controlled random datasets
Getting ready
How to do it...
Smoothing the noise in real-world data
Getting ready
How to do it...
How it works...
There's more...
3. Drawing Your First Plots and Customizing Them
Introduction
Defining plot types – bar, line, and stacked charts
Getting ready
How to do it...
How it works...
There's more...
Drawing simple sine and cosine plots
Getting ready
How to do it...
Defining axis lengths and limits
Getting ready
How to do it...
How it works...
There's more...
Defining plot line styles, properties, and format strings
Getting ready
How to do it...
How it works...
Color
Background color
Setting ticks, labels, and grids
Getting ready
How to do it...
Adding legends and annotations
Getting ready
How to do it...
How it works...
Moving spines to the center
How to do it...
How it works...
There's more...
Making histograms
Getting ready
How to do it...
How it works...
Making bar charts with error bars
Getting ready
How to do it...
How it works...
There's more...
Making pie charts count
Getting ready
How to do it...
Plotting with filled areas
Getting ready
How to do it...
How it works...
There's more...
Making stacked plots
Getting ready
How to do it...
How it works...
Drawing scatter plots with colored markers
Getting ready
How to do it...
How it works...
4. More Plots and Customizations
Introduction
Setting the transparency and size of axis labels
Getting ready
How to do it...
How it works...
There's more...
Adding a shadow to the chart line
Getting ready
How to do it...
How it works...
There's more...
Adding a data table to the figure
Getting ready
How to do it...
How it works...
There's more...
Using subplots
Getting ready
How to do it...
How it works...
There's more...
Customizing grids
Getting ready
How to do it...
How it works...
Creating contour plots
Getting ready
How to do it...
How it works...
Filling an under-plot area
Getting ready
How to do it...
How it works...
Drawing polar plots
Getting ready
How to do it...
How it works...
Visualizing the filesystem tree using a polar bar
Getting ready
How to do it...
How it works...
Customizing matplotlib with style
Getting ready
How to do it...
How it works...
5. Making 3D Visualizations
Introduction
Creating 3D bars
Getting ready
How to do it...
How it works...
There's more...
Creating 3D histograms
Getting ready
How to do it...
How it works...
Animating in matplotlib
Getting ready
How to do it...
How it works...
There's more...
Animating with OpenGL
Getting ready
How to do it...
How it works...
There's more...
6. Plotting Charts with Images and Maps
Introduction
Processing images with PIL
Getting ready
How to do it...
How it works...
There's more...
Plotting with images
Getting ready
How to do it...
How it works...
Displaying images with other plots in the figure
Getting ready
How to do it...
How it works...
There's more...
Plotting data on a map using Basemap
Getting ready
How to do it...
How it works...
There's more...
Plotting data on a map using the Google Map API
Getting ready
How to do it...
How it works...
There's more...
Generating CAPTCHA images
Getting ready
How to do it...
How it works...
There's more...
7. Using the Right Plots to Understand Data
Introduction
Understanding logarithmic plots
Getting ready
How to do it...
How it works...
Understanding spectrograms
Getting ready
How to do it...
How it works...
There's more...
Creating stem plot
Getting ready
How to do it...
How it works...
Drawing streamlines of vector flow
Getting ready
How to do it...
How it works...
There's more...
Using colormaps
Getting ready
How to do it...
How it works...
There's more...
Using scatter plots and histograms
Getting ready
How to do it...
How it works...
There's more...
Plotting the cross correlation between two variables
Getting ready
How to do it...
How it works...
Importance of autocorrelation
Getting ready
How to do it...
How it works...
There's more...
8. More on matplotlib Gems
Introduction
Drawing barbs
Getting ready
How to do it...
How it works...
There's more...
Making a box-and-whisker plot
Getting ready
How to do it...
How it works...
Making Gantt charts
Getting ready
How to do it...
How it works...
Making error bars
Getting ready
How to do it...
How it works...
There's more...
Making use of text and font properties
Getting ready
How to do it...
How it works...
Rendering text with LaTeX
Getting ready
How to do it...
How it works...
There's more...
Understanding the difference between pyplot and OO API
Getting ready
How to do it...
How it works...
There's more...
9. Visualizations on the Clouds with Plot.ly
Introduction
Creating line charts
Getting ready
How to do it...
How it works...
There's more...
Creating bar charts
Getting ready
How to do it...
How it works...
There's more...
Plotting a 3D trefoil knot
How to do it...
How it works...
Visualizing maps and bubbles
Getting ready
How to do it...
How it works...
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜