Other Sellers on Amazon
& FREE Shipping
90% positive over last 12 months
Usually ships within 4 to 5 days.
& FREE Shipping
80% positive over last 12 months
Usually ships within 4 to 5 days.
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required. Learn more
Read instantly on your browser with Kindle Cloud Reader.
Using your mobile phone camera - scan the code below and download the Kindle app.
matplotlib Plotting Cookbook Paperback – March 26, 2014
| Price | New from | Used from |
Enhance your purchase
About This Book
- Learn plotting with self-contained, practical examples that cover common use cases
- Build your own solutions with the orthogonal recipes
- Learn to customize and combine basic plots to make sophisticated figures
Who This Book Is For
If you are an engineer or scientist who wants to create great visualizations with Python, rather than yet another specialized language, this is the book for you. While there are several very competent plotting packages, matplotlib is “just” a Python module. Thus, if you know some Python already, you will feel at home from the first steps on. In case you are an application writer, you won't be left out since the integration of matplotlib is covered.
What You Will Learn
- Discover how to create all the common plots you need
- Enrich your plots with annotations and sophisticated legends
- Take control of your plots and master colors, linestyle, and scales
- Add a dimension to your plots and go 3D
- Integrate your graphics into your applications
- Automate your work and generate a large batch of graphics
- Create interactive plots with matplotlib
- Combine your plots to create sophisticated visualizations
In Detail
matplotlib is part of the Scientific Python modules collection. matplotlib provides a large library of customizable plots and a comprehensive set of backends. It tries to make easy things easy and hard things possible. You can generate plots, add dimensions to the plots, and also make the plots interactive with just a few lines of code with matplotlib. Also, matplotlib integrates well with all common GUI modules.
This book is a head-first, hands-on journey into matplotlib, the complete and definite plotting package for Python. You will learn about the basic plots, how to customize them, and combine them to make sophisticated figures. Along with basic plots, you will also learn to make professional scientific plots.
In this book, you will start with the common figures that are offered by most plotting packages. You will learn how to add annotations, and play with styles, colors, scales, and shapes so that you can add personality and visual punch to your graphics. You will also see how to combine several graphics. With this book you will learn how to create sophisticated visualizations with simple code. Finally, you can make your plots interactive.
After reading "matplotlib Plotting Cookbook", you will be able to create the highest quality plots.
- Print length222 pages
- LanguageEnglish
- PublisherPackt Publishing
- Publication dateMarch 26, 2014
- Dimensions7.5 x 0.5 x 9.25 inches
- ISBN-101849513260
- ISBN-13978-1849513265
Inspire a love of reading with Amazon Book Box for Kids
Discover delightful children's books with Amazon Book Box, a subscription that delivers new books every 1, 2, or 3 months — new Amazon Book Box Prime customers receive 15% off your first box. Learn more.
Customers who viewed this item also viewed
Customers who bought this item also bought
Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Product details
- Publisher : Packt Publishing (March 26, 2014)
- Language : English
- Paperback : 222 pages
- ISBN-10 : 1849513260
- ISBN-13 : 978-1849513265
- Item Weight : 13.8 ounces
- Dimensions : 7.5 x 0.5 x 9.25 inches
- Best Sellers Rank: #2,860,781 in Books (See Top 100 in Books)
- #1,220 in Mathematical & Statistical Software
- #3,079 in Python Programming
- Customer Reviews:
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonTop reviews from the United States
There was a problem filtering reviews right now. Please try again later.
My principal disappointment is that the book never really stops and pauses to carefully explain the 'object oriented' (OO) or 'pythonic' approach to manipulating figures in matplotlib. If you are like me you were moved to buy a matplotlib cookbook/manual primarily because you are trying to learn scientific python plotting but 90% of the interesting examples you can find uses this OO approach.
The first 115 pages of this book assumes you're not interested in that at all but instead in the easier to learn and explain approach to plotting which hides a lot of detail behind the scenes. I agree this is the way to start, but I kept expecting a full new chapter to arrive that would finally pause to explain the grand design/OO-oriented philosophy behind Matplotlib which would help me understand how/why things work. But there is no such chapter or section.
Finally on page 116 we do get a brief mention of the way that matplotlib really works "behind the scenes" with the explanation that [and I quote] "...[A] figure object represents a figure as a whole. Usually, this object is created implicitly, behind the scenes...by creating the object explicitly, we can control various aspects of a figure, including its aspect ratio."
Great, I thought, matplotlib's secrets are finally about to be revealed.... but that was only a passing mention. It's not until page 135 that we see code again now this time finally explicitly creating a figure object instance with "fig = plt.figure(...)". There are several more examples in the book like this after this that follow the object-instance approach, and these have been very useful for finally figuring things out myself.. But I think an opportunity was missed to make this a much more useful book. All that said, I'm not at all sorry I purchased this and I don't see much else out there that is similar (which is surprising)..
What this book does very well is introducing matplotlib quite gently in the first chapter, which makes it quite attractive for Python & matplotlib beginners. But also here, we have the alternative free user guide available online http://matplotlib.org/contents.html
My main point of criticism why I find the matplotlib.org resources more accessible might be that they are actually in color: the plot and the code syntax. Unfortunately, the book only uses colors throughout the first chapter (and very very rarely for a handful of other plots later on), so that the largest portion of the plots are in gray-scale - also no syntax highlighting throughout this book. Since I have the ebook version, I do not fully understand why there is no coloring throughout the other chapters (especially the 2nd chapter, which is called "Chapter 2: Customizing Colors and Styles").
But overall, it covers matplotlib pretty well, and I'd recommend it as an alternative to the resources matplotlib.org.
But to it's defense, my hard copy of the "Gnuplot in Action" is also presented in gray-scales, and the "R Graphic's cookbook" also only makes use of colors rather sparingly. However, I think, nowadays in 2014 I'd at least expect the ebook to be in color - especially if you want to make it more attractive than the freely available online resources.
Not a real point of criticism but more like a suggestion for future editions: as big fan of it, I was actually looking for this section that mentions how to use it in IPython notebooks (%pylab inline vs. matplotlib inline), and maybe also plotly for additional value :)
I had a bare minimum exposure to Matplotlib but I did not feel that I need to separately following any other tutorial to learn any particular tools. IMO, the given examples provide a better understanding of the most useful tools by seeing them in action and trying them out on your own.
The last chapter on User Interfaces covers creating interactive plots using Tkinter, wxWidgets, GTK, etc, which is helpful in bringing the plots to an audience in a way that makes it easier to explain and clarify the data being considered.
I would recommend the Matplotlib Plotting Cookbook to people starting out with Matplotlib who want to get up to speed quickly. It's also useful as a quick reference for experienced developers since many common use cases are covered. The index and the table of contents make it simple to find any particular use case.
Top reviews from other countries
I think book authors should understand that when someone opts to buy a book (instead of heading over to the online API), they are expecting the book to contain a fair bit of information about the API.






