万本电子书0元读

万本电子书0元读

顶部广告

Python Data Visualization Cookbook - Second Edition电子书

售       价:¥

3人正在读 | 0人评论 9.8

作       者:Igor Milovanovi?

出  版  社:Packt Publishing

出版时间:2015-11-30

字       数:142.8万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Over 70 recipes to get you started with popular Python libraries based on the principal concepts of data visualization About This Book Learn how to set up an optimal Python environment for data visualization Understand how to import, clean and organize your data Determine different approaches to data visualization and how to choose the most appropriate for your needs Who This Book Is For If you already know about Python programming and want to understand data, data formats, data visualization, and how to use Python to visualize data then this book is for you. 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 In Detail 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. Style and approach A step-by-step recipe based approach to data visualization. The topics are explained sequentially as cookbook recipes consisting of a code snippet and the resulting visualization.
目录展开

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

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部