实例介绍
【实例简介】
【实例截图】
【核心代码】
Table of Contents Preface v Chapter 1: Preparing Your Working Environment 1 Introduction 1 Installing matplotlib, NumPy, and SciPy 2 Installing virtualenv and virtualenvwrapper 4 Installing matplotlib on Mac OS X 7 Installing matplotlib on Windows 9 Installing Python Imaging Library (PIL) for image processing 10 Installing a requests module 11 Customizing matplotlib's parameters in code 12 Customizing matplotlib's parameters per project 14 Chapter 2: Knowing Your Data 17 Introduction 17 Importing data from CSV 18 Importing data from Microsoft Excel files 20 Importing data from fixed-width data files 23 Importing data from tab-delimited files 25 Importing data from a JSON resource 27 Exporting data to JSON, CSV, and Excel 29 Importing and manipulating data with Pandas 34 Importing data from a database 35 Cleaning up data from outliers 40 Reading files in chunks 45 Reading streaming data sources 47 Importing image data into NumPy arrays 49 Generating controlled random datasets 55 Smoothing the noise in real-world data 62 ii Table of Contents Chapter 3: Drawing Your First Plots and Customizing Them 69 Introduction 70 Defining plot types – bar, line, and stacked charts 70 Drawing simple sine and cosine plots 76 Defining axis lengths and limits 79 Defining plot line styles, properties, and format strings 82 Setting ticks, labels, and grids 87 Adding legends and annotations 90 Moving spines to the center 93 Making histograms 95 Making bar charts with error bars 97 Making pie charts count 100 Plotting with filled areas 102 Making stacked plots 104 Drawing scatter plots with colored markers 107 Chapter 4: More Plots and Customizations 111 Introduction 111 Setting the transparency and size of axis labels 112 Adding a shadow to the chart line 114 Adding a data table to the figure 118 Using subplots 120 Customizing grids 123 Creating contour plots 128 Filling an under-plot area 131 Drawing polar plots 134 Visualizing the filesystem tree using a polar bar 136 Customizing matplotlib with style 140 Chapter 5: Making 3D Visualizations 143 Introduction 143 Creating 3D bars 143 Creating 3D histograms 147 Animating in matplotlib 150 Animating with OpenGL 154 Chapter 6: Plotting Charts with Images and Maps 159 Introduction 159 Processing images with PIL 160 Plotting with images 166 Displaying images with other plots in the figure 171 Plotting data on a map using Basemap 174 iii Table of Contents Plotting data on a map using the Google Map API 179 Generating CAPTCHA images 185 Chapter 7: Using the Right Plots to Understand Data 191 Introduction 191 Understanding logarithmic plots 192 Understanding spectrograms 195 Creating stem plot 200 Drawing streamlines of vector flow 204 Using colormaps 208 Using scatter plots and histograms 213 Plotting the cross correlation between two variables 221 Importance of autocorrelation 224 Chapter 8: More on matplotlib Gems 229 Introduction 229 Drawing barbs 229 Making a box-and-whisker plot 233 Making Gantt charts 236 Making error bars 241 Making use of text and font properties 244 Rendering text with LaTeX 251 Understanding the difference between pyplot and OO API 255 Chapter 9: Visualizations on the Clouds with Plot.ly 261 Introduction 261 Creating line charts 262 Creating bar charts 266 Plotting a 3D trefoil knot 269 Visualizing maps and bubbles 272 Index 275
好例子网口号:伸出你的我的手 — 分享!
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论