Table of ContentsPreface vChapter 1: Preparing Your Working Environment 1Introduction 1Installing matplotlib, NumPy, and SciPy 2Installing virtualenv and virtualenvwrapper 4Installing matplotlib on Mac OS X 7Installing matplotlib on Windows 9Installing Python Imaging Library (PIL) for image processing 10Installing a requests module 11Customizing matplotlib's parameters in code 12Customizing matplotlib's parameters per project 14Chapter 2: Knowing Your Data 17Introduction 17Importing data from CSV 18Importing data from Microsoft Excel files 20Importing data from fixed-width data files 23Importing data from tab-delimited files 25Importing data from a JSON resource 27Exporting data to JSON, CSV, and Excel 29Importing and manipulating data with Pandas 34Importing data from a database 35Cleaning up data from outliers 40Reading files in chunks 45Reading streaming data sources 47Importing image data into NumPy arrays 49Generating controlled random datasets 55Smoothing the noise in real-world data 62iiTable of ContentsChapter 3: Drawing Your First Plots and Customizing Them 69Introduction 70Defining plot types – bar, line, and stacked charts 70Drawing simple sine and cosine plots 76Defining axis lengths and limits 79Defining plot line styles, properties, and format strings 82Setting ticks, labels, and grids 87Adding legends and annotations 90Moving spines to the center 93Making histograms 95Making bar charts with error bars 97Making pie charts count 100Plotting with filled areas 102Making stacked plots 104Drawing scatter plots with colored markers 107Chapter 4: More Plots and Customizations 111Introduction 111Setting the transparency and size of axis labels 112Adding a shadow to the chart line 114Adding a data table to the figure 118Using subplots 120Customizing grids 123Creating contour plots 128Filling an under-plot area 131Drawing polar plots 134Visualizing the filesystem tree using a polar bar 136Customizing matplotlib with style 140Chapter 5: Making 3D Visualizations 143Introduction 143Creating 3D bars 143Creating 3D histograms 147Animating in matplotlib 150Animating with OpenGL 154Chapter 6: Plotting Charts with Images and Maps 159Introduction 159Processing images with PIL 160Plotting with images 166Displaying images with other plots in the figure 171Plotting data on a map using Basemap 174iiiTable of ContentsPlotting data on a map using the Google Map API 179Generating CAPTCHA images 185Chapter 7: Using the Right Plots to Understand Data 191Introduction 191Understanding logarithmic plots 192Understanding spectrograms 195Creating stem plot 200Drawing streamlines of vector flow 204Using colormaps 208Using scatter plots and histograms 213Plotting the cross correlation between two variables 221Importance of autocorrelation 224Chapter 8: More on matplotlib Gems 229Introduction 229Drawing barbs 229Making a box-and-whisker plot 233Making Gantt charts 236Making error bars 241Making use of text and font properties 244Rendering text with LaTeX 251Understanding the difference between pyplot and OO API 255Chapter 9: Visualizations on the Clouds with Plot.ly 261Introduction 261Creating line charts 262Creating bar charts 266Plotting a 3D trefoil knot 269Visualizing maps and bubbles 272Index 275
下载Python Data Visualization Cookbook 2nd edition 2015.pdf用户还喜欢
- 18480 文章数
- 500万+ 热度
作者专栏
编辑推荐
- 淡抹u2引擎,修复内容较多,物有所值
- 界域传说·经典巨作=传世单机(一键安装)
- 丸子版本(175个传世版本大集合)
- GS版本:神话公益服务端+客户端
- 图片放大工具(放大图片不模糊)
- 剪映无限制VIP版
- 传奇世界客户端下载器,史上最全传世客户端
- 传世GS20220920商业引擎注册+登录配置器 解压密码是1
- U2官方排行榜游戏网关 支持元神,支持传家宝
- GS开战传世客户端+服务端
- (淡漠夕阳)u2引擎合区工具
- 传世GS引擎消除“你的游戏客户端版本号过旧,请及时更新”提示
- 传世一机多区双线路配置器--免密码版本
- 传世凤凰登陆器劫持修复软件
- SQLite3 for Navicat
- 传奇世界npc对话框编辑工具
- 传世GS落霞铭文服务器端
- gs_20210409引擎包+注册机(无限制)
- 传奇世界NPC对话封包查看器[支持时长版和极速版]
- 彩虹引擎传世脚本编辑工具1.7版来了,支持函数脚本翻译
评论