๐”– Scriptorium
โœฆ   LIBER   โœฆ

๐Ÿ“

Matplotlib for Python Developers

โœ Scribed by Tosi, Sandro


Publisher
Packt Publishing
Year
2009
Tongue
English
Leaves
307
Category
Library

โฌ‡  Acquire This Volume

No coin nor oath required. For personal study only.

โœฆ Synopsis


Providing appealing plots and graphs is an essential part of various fields such as scientific research, data analysis, and so on. Matplotlib, the Python 2D plotting library, is used to produce publication-quality figures in a variety of hardcopy formats and interactive environments across platforms. This book explains creating various plots, histograms, power spectra, bar charts, error charts, scatter-plots and much more using the powerful Matplotlib library to get impressive out-of-the-box results.

โœฆ Table of Contents


Cover......Page 0
Copyright......Page 2
Credits......Page 3
About the Author......Page 4
About the Reviewers......Page 5
Table of Contents......Page 7
Preface......Page 11
Chapter 1: Introduction to Matplotlib......Page 17
Merits of Matplotlib......Page 18
Output formats and backends......Page 20
Output formats......Page 21
Backends......Page 22
About dependencies......Page 23
Installing Matplotlib on Linux......Page 25
Installing Matplotlib on Mac OS X......Page 26
Installing Matplotlib from source code......Page 27
Testing our installation......Page 28
Summary......Page 29
First plots with Matplotlib......Page 31
Multiline plots......Page 35
A brief introduction to NumPy arrays......Page 37
Adding a grid......Page 38
Handling axes......Page 39
Adding labels......Page 41
Adding a title......Page 42
Adding a legend......Page 43
A complete example......Page 45
Saving plots to a file......Page 46
Interactive navigation toolbar......Page 48
IPython support......Page 50
Controlling the interactive mode......Page 52
Configuring Matplotlib......Page 53
Configuration files......Page 54
Configuring through the Python code......Page 55
Selecting backend from code......Page 56
Summary......Page 57
Markers and line styles......Page 59
Control colors......Page 60
Control line styles......Page 62
Control marker styles......Page 63
Finer control with keyword arguments......Page 66
Handling X and Y ticks......Page 68
Histogram charts......Page 69
Error bar charts......Page 71
Bar charts......Page 73
Pie charts......Page 76
Scatter plots......Page 79
Polar charts......Page 81
Control radial and angular grids......Page 83
Text inside figure......Page 84
Annotations......Page 85
Arrows......Page 87
Summary......Page 89
Object-oriented versus MATLAB styles......Page 91
Our first (simple) example of OO Matplotlib......Page 95
Subplots......Page 96
Multiple figures......Page 98
Additional Y (or X) axes......Page 99
Logarithmic axes......Page 101
Share axes......Page 102
Plotting dates......Page 104
Date formatting......Page 105
Axes formatting with axes tick locators and formatters......Page 106
Text properties, fonts, and LaTeX......Page 109
Fonts......Page 111
Using LaTeX formatting......Page 112
Mathtext......Page 113
External TeX renderer......Page 114
Contour plots......Page 116
Image plotting......Page 119
Summary......Page 121
A brief introduction to GTK+......Page 123
Introduction to GTK+ signal system......Page 125
Embedding a Matplotlib figure in a GTK+ window......Page 126
Including a navigation toolbar......Page 129
Real-time plots update......Page 133
Designing the GUI using Glade......Page 142
Code to use Glade GUI......Page 145
Summary......Page 154
Brief introduction to Qt 4 and PyQt4......Page 155
Embedding a Matplotlib figure in a Qt window......Page 157
Including a navigation toolbar......Page 161
Real-time update of a Matplotlib graph......Page 166
Designing the GUI using Qt Designer......Page 175
Code to use the Qt Designer GUI......Page 178
Introduction to signals and slots......Page 181
Returning to the example......Page 182
Summary......Page 189
Brief introduction to wxWidgets and wxPython......Page 191
Embedding a Matplotlib figure in a wxFrame......Page 192
Including a navigation toolbar......Page 196
Real-time plots update......Page 202
Embedding Matplotlib in a GUI made with wxGlade......Page 213
Summary......Page 223
Chapter 8: Matplotlib for the Web......Page 225
Configuring Apache for CGI execution......Page 226
Simple CGI example......Page 228
Matplotlib in a CGI script......Page 229
Passing parameters to a CGI script......Page 230
What is mod_python......Page 233
Apache configuration for mod_python......Page 234
Matplotlib in a mod_python example......Page 236
Matplotlib and mod_python's Python Server Pages......Page 238
Web Frameworks and MVC......Page 241
What is Django......Page 242
Matplotlib in a Django application......Page 243
What is Pylons......Page 247
Matplotlib in a Pylons application......Page 248
Summary......Page 252
Chapter 9: Matplotlib in the Real World......Page 253
Plotting data from a database......Page 254
Plotting data from the Web......Page 257
Plotting data by parsing an Apache log file......Page 260
Plotting data from a CSV file......Page 266
Plotting extrapolated data using curve fitting......Page 271
NetworkX......Page 277
Mpmath......Page 279
Plotting geographical data......Page 281
First example......Page 282
Using satellite background......Page 284
Plot data over a map......Page 285
Plotting shapefiles with Basemap......Page 287
Summary......Page 289
Index......Page 291

โœฆ Subjects


Computer Science;Computers;Programming;Nonfiction


๐Ÿ“œ SIMILAR VOLUMES


Matplotlib for Python Developers
โœ Sandro Tosi ๐Ÿ“‚ Library ๐Ÿ“… 2009 ๐Ÿ› Packt Publishing ๐ŸŒ English

Disclaimer: this book (in electronic format) was provided to me for review by Packt publishing matplotlib is the most popular plotting library for Python, and rightly so. It produces extremely high-quality plots suitable for publication, and thus, coupled with numpy and scipy is one of the major dr

Matplotlib for Python Developers
โœ Sandro Tosi ๐Ÿ“‚ Library ๐Ÿ“… 2009 ๐Ÿ› Packt Publishing ๐ŸŒ English

<P>Build remarkable publication-quality plots the easy way</p> <ul><li>Create high quality 2D plots by using Matplotlib productively</li><li>Incremental introduction to Matplotlib, from the ground up to advanced levels</li><li>Embed Matplotlib in GTK+, Qt, and wxWidgets applications as well as web

Matplotlib for Python Developers
โœ Sandro Tosi ๐Ÿ“‚ Library ๐Ÿ“… 2009 ๐Ÿ› Packt Publishing ๐ŸŒ English

This is a practical, hands-on book, with a lot of code and images. It presents the real code that generates every image and describes almost every single line of it, so that you know exactly what's going on. Introductory, descriptive, and theoretical parts are mixed with examples, so that reading an

Matplotlib for Python Developers
โœ Allen Yu;Claire Chung;Aldrin Yim ๐Ÿ“‚ Library ๐Ÿ“… 2018 ๐Ÿ› Packt Publishing ๐ŸŒ English

<span><p><b>Leverage the power of Matplotlib to visualize and understand your data more effectively</b></p><b>About This Book</b><ul><li>Perform effective data visualization with Matplotlib and get actionable insights from your data</li><li>Design attractive graphs, charts, and 2D plots, and deploy