英文原版Table of ContentsPreface 1Chapter 1: Introduction to Matplotlib 7Merits of Matplotlib 8Matplotlib web sites and online documentation 10Output formats and backends 10Output formats 11Backends 12About dependencies 13Build dependencies 15Installing Matplotlib 15Installing Matplotlib on Linux 15Installing Matplotlib on Windows 16Installing Matplotlib on Mac OS X 16Installing Matplotlib using packaged Python distributions 17Installing Matplotlib from source code 17Testing our installation 18Summary 19Chapter 2: Getting Started with Matplotlib 21First plots with Matplotlib 21Multiline plots 25A brief introduction to NumPy arrays 27Grid, axes, and labels 28Adding a grid 28Handling axes 29Adding labels 31Titles and legends 32Adding a title 32Adding a legend 33This material is copyright and is licensed for the sole use by Jillian Fraser on 20th November 2009111 Sutter Street, Suite 1800, San Francisco, , 94104Download at WoweBook.ComTable of Contents[ ii ]A complete example 35Saving plots to a file 36Interactive navigation toolbar 38IPython support 40Controlling the interactive mode 42Suppressing functions output 43Configuring Matplotlib 43Configuration files 44Configuring through the Python code 45Selecting backend from code 46Summary 47Chapter 3: Decorate Graphs with Plot Styles and Types 49Markers and line styles 49Control colors 50Specifying styles in multiline plots 52Control line styles 52Control marker styles 53Finer control with keyword arguments 56Handling X and Y ticks 58Plot types 59Histogram charts 59Error bar charts 61Bar charts 63Pie charts 67Scatter plots 69Polar charts 71Navigation Toolbar with polar plots 73Control radial and angular grids 73Text inside figure, annotations, and arrows 74Text inside figure 74Annotations 75Arrows 77Summary 79Chapter 4: Advanced Matplotlib 81Object-oriented versus MATLAB styles 81A brief introduction to Matplotlib objects 85Our first (simple) example of OO Matplotlib 85Subplots 86Multiple figures 88Additional Y (or X) axes 89This material is copyright and is licensed for the sole use by Jillian Fraser on 20th November 2009111 Sutter Street, Suite 1800, San Francisco, , 94104Download at WoweBook.ComTable of Contents[ iii ]Logarithmic axes 91Share axes 92Plotting dates 94Date formatting 95Axes formatting with axes tick locators and formatters 96Custom formatters and locators 99Text properties, fonts, and LaTeX 99Fonts 101Using LaTeX formatting 102Mathtext 103External TeX renderer 104Contour plots and image plotting 106Contour plots 106Image plotting 109Summary 111Chapter 5: Embedding Matplotlib in GTK 113A brief introduction to GTK 113Introduction to GTK signal system 115Embedding a Matplotlib figure in a GTK window 116Including a navigation toolbar 119Real-time plots update 123Embedding Matplotlib in a Glade application 132Designing the GUI using Glade 132Code to use Glade GUI 135Summary 144Chapter 6: Embedding Matplotlib in Qt 4 145Brief introduction to Qt 4 and PyQt4 145Embedding a Matplotlib figure in a Qt window 147Including a navigation toolbar 151Real-time update of a Matplotlib graph 156Embedding Matplotlib in a GUI made with Qt Designer 165Designing the GUI using Qt Designer 165Code to use the Qt Designer GUI 168Introduction to signals and slots 171Returning to the example 172Summary 179Chapter 7: Embedding Matplotlib in wxWidgets 181Brief introduction to wxWidgets and wxPython 181Embedding a Matplotlib figure in a wxFrame 182Including a navigation toolbar 186This material is copyright and is licensed for the sole use by Jillian Fraser on 20th November 2009111 Sutter Street, Suite 1800, San Francisco, , 94104Download at WoweBook.ComTable of Contents[ iv ]Real-time plots update 192Embedding Matplotlib in a GUI made with wxGlade 203Summary 213Chapter 8: Matplotlib for the Web 215Matplotlib and CGI 216What is CGI 216Configuring Apache for CGI execution 216Simple CGI example 218Matplotlib in a CGI script 219Passing parameters to a CGI script 220Matplotlib and mod_python 223What is mod_python 223Apache configuration for mod_python 224Matplotlib in a mod_python example 226Matplotlib and mod_python's Python Server Pages 228Web Frameworks and MVC 231Matplotlib and Django 232What is Django 232Matplotlib in a Django application 233Matplotlib and Pylons 237What is Pylons 237Matplotlib in a Pylons application 238Summary 242Chapter 9: Matplotlib in the Real World 243Plotting data from a database 244Plotting data from the Web 247Plotting data by parsing an Apache log file 250Plotting data from a CSV file 256Plotting extrapolated data using curve fitting 261Tools using Matplotlib 267NetworkX 267Mpmath 269Plotting geographical data 271First example 272Using satellite background 274Plot data over a map 275Plotting shapefiles with Basemap 277Summary 279Index 281
下载Matplotlib for Python Developers.pdf用户还喜欢
- 18480 文章数
- 500万+ 热度
作者专栏
编辑推荐
- 淡抹u2引擎,修复内容较多,物有所值
- 界域传说·经典巨作=传世单机(一键安装)
- 丸子版本(175个传世版本大集合)
- GS版本:神话公益服务端+客户端
- 图片放大工具(放大图片不模糊)
- 剪映无限制VIP版
- 传奇世界客户端下载器,史上最全传世客户端
- 传世GS20220920商业引擎注册+登录配置器 解压密码是1
- U2官方排行榜游戏网关 支持元神,支持传家宝
- GS开战传世客户端+服务端
- (淡漠夕阳)u2引擎合区工具
- 传世GS引擎消除“你的游戏客户端版本号过旧,请及时更新”提示
- 传世一机多区双线路配置器--免密码版本
- 传世凤凰登陆器劫持修复软件
- SQLite3 for Navicat
- 传奇世界npc对话框编辑工具
- 传世GS落霞铭文服务器端
- gs_20210409引擎包+注册机(无限制)
- 传奇世界NPC对话封包查看器[支持时长版和极速版]
- 彩虹引擎传世脚本编辑工具1.7版来了,支持函数脚本翻译
评论