实例介绍
英文原版
Table of Contents Preface 1 Chapter 1: Introduction to Matplotlib 7 Merits of Matplotlib 8 Matplotlib web sites and online documentation 10 Output formats and backends 10 Output formats 11 Backends 12 About dependencies 13 Build dependencies 15 Installing Matplotlib 15 Installing Matplotlib on Linux 15 Installing Matplotlib on Windows 16 Installing Matplotlib on Mac OS X 16 Installing Matplotlib using packaged Python distributions 17 Installing Matplotlib from source code 17 Testing our installation 18 Summary 19 Chapter 2: Getting Started with Matplotlib 21 First plots with Matplotlib 21 Multiline plots 25 A brief introduction to NumPy arrays 27 Grid, axes, and labels 28 Adding a grid 28 Handling axes 29 Adding labels 31 Titles and legends 32 Adding a title 32 Adding a legend 33 This material is copyright and is licensed for the sole use by Jillian Fraser on 20th November 2009 111 Sutter Street, Suite 1800, San Francisco, , 94104 Download at WoweBook.Com Table of Contents [ ii ] A complete example 35 Saving plots to a file 36 Interactive navigation toolbar 38 IPython support 40 Controlling the interactive mode 42 Suppressing functions output 43 Configuring Matplotlib 43 Configuration files 44 Configuring through the Python code 45 Selecting backend from code 46 Summary 47 Chapter 3: Decorate Graphs with Plot Styles and Types 49 Markers and line styles 49 Control colors 50 Specifying styles in multiline plots 52 Control line styles 52 Control marker styles 53 Finer control with keyword arguments 56 Handling X and Y ticks 58 Plot types 59 Histogram charts 59 Error bar charts 61 Bar charts 63 Pie charts 67 Scatter plots 69 Polar charts 71 Navigation Toolbar with polar plots 73 Control radial and angular grids 73 Text inside figure, annotations, and arrows 74 Text inside figure 74 Annotations 75 Arrows 77 Summary 79 Chapter 4: Advanced Matplotlib 81 Object-oriented versus MATLAB styles 81 A brief introduction to Matplotlib objects 85 Our first (simple) example of OO Matplotlib 85 Subplots 86 Multiple figures 88 Additional Y (or X) axes 89 This material is copyright and is licensed for the sole use by Jillian Fraser on 20th November 2009 111 Sutter Street, Suite 1800, San Francisco, , 94104 Download at WoweBook.Com Table of Contents [ iii ] Logarithmic axes 91 Share axes 92 Plotting dates 94 Date formatting 95 Axes formatting with axes tick locators and formatters 96 Custom formatters and locators 99 Text properties, fonts, and LaTeX 99 Fonts 101 Using LaTeX formatting 102 Mathtext 103 External TeX renderer 104 Contour plots and image plotting 106 Contour plots 106 Image plotting 109 Summary 111 Chapter 5: Embedding Matplotlib in GTK 113 A brief introduction to GTK 113 Introduction to GTK signal system 115 Embedding a Matplotlib figure in a GTK window 116 Including a navigation toolbar 119 Real-time plots update 123 Embedding Matplotlib in a Glade application 132 Designing the GUI using Glade 132 Code to use Glade GUI 135 Summary 144 Chapter 6: Embedding Matplotlib in Qt 4 145 Brief introduction to Qt 4 and PyQt4 145 Embedding a Matplotlib figure in a Qt window 147 Including a navigation toolbar 151 Real-time update of a Matplotlib graph 156 Embedding Matplotlib in a GUI made with Qt Designer 165 Designing the GUI using Qt Designer 165 Code to use the Qt Designer GUI 168 Introduction to signals and slots 171 Returning to the example 172 Summary 179 Chapter 7: Embedding Matplotlib in wxWidgets 181 Brief introduction to wxWidgets and wxPython 181 Embedding a Matplotlib figure in a wxFrame 182 Including a navigation toolbar 186 This material is copyright and is licensed for the sole use by Jillian Fraser on 20th November 2009 111 Sutter Street, Suite 1800, San Francisco, , 94104 Download at WoweBook.Com Table of Contents [ iv ] Real-time plots update 192 Embedding Matplotlib in a GUI made with wxGlade 203 Summary 213 Chapter 8: Matplotlib for the Web 215 Matplotlib and CGI 216 What is CGI 216 Configuring Apache for CGI execution 216 Simple CGI example 218 Matplotlib in a CGI script 219 Passing parameters to a CGI script 220 Matplotlib and mod_python 223 What is mod_python 223 Apache configuration for mod_python 224 Matplotlib in a mod_python example 226 Matplotlib and mod_python's Python Server Pages 228 Web Frameworks and MVC 231 Matplotlib and Django 232 What is Django 232 Matplotlib in a Django application 233 Matplotlib and Pylons 237 What is Pylons 237 Matplotlib in a Pylons application 238 Summary 242 Chapter 9: Matplotlib in the Real World 243 Plotting data from a database 244 Plotting data from the Web 247 Plotting data by parsing an Apache log file 250 Plotting data from a CSV file 256 Plotting extrapolated data using curve fitting 261 Tools using Matplotlib 267 NetworkX 267 Mpmath 269 Plotting geographical data 271 First example 272 Using satellite background 274 Plot data over a map 275 Plotting shapefiles with Basemap 277 Summary 279 Index 281
好例子网口号:伸出你的我的手 — 分享!
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论