找传奇、传世资源到传世资源站!

Matplotlib for Python Developers.pdf

8.5玩家评分(1人评分)
下载后可评
介绍 评论 失效链接反馈

英文原版from clipboardTable 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

评论

发表评论必须先登陆, 您可以 登陆 或者 注册新账号 !


在线咨询: 问题反馈
客服QQ:174666394

有问题请留言,看到后及时答复