Start reading Matplotlib for Python Developers on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here or start reading now with a free Kindle Reading App.

Deliver to your Kindle or other device


Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.
Matplotlib for Python Developers

Matplotlib for Python Developers [Kindle Edition]

Sandro Tosi

Print List Price: £27.99
Kindle Price: £17.50 includes VAT* & free wireless delivery via Amazon Whispernet
You Save: £10.49 (37%)
* Unlike print books, digital books are subject to VAT.


Amazon Price New from Used from
Kindle Edition £17.50  
Paperback £27.99  
Kindle Summer Sale: Over 500 Books from £0.99
Have you seen the Kindle Summer Sale yet? Browse selected books from popular authors and debut novelists, including new releases and bestsellers. Learn more

Special Offers and Product Promotions

  • Purchase any Kindle Book sold by and receive £1 credit to try out our Digital Music Store. Here's how (terms and conditions apply)

Product Description

Product Description

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 and understanding them is easy. All of the examples build gradually with code snippets, their explanations, and plot images where necessary with the complete code and output presented at the end. This book is essentially for Python developers who have a good knowledge of Python; no knowledge of Matplotlib is required. You will be creating 2D plots using Matplotlib in no time at all.

About the Author

Sandro Tosi

Sandro Tosi is a Debian Developer, Open Source evangelist, and Python enthusiast. After completing a B.Sc. in Computer Science from the University of Firenze, he worked as a consultant for an energy multinational as System Analyst and EAI Architect, and now works as System Engineer for one of the biggest and most innovative Italian Internet companies.

Product details

  • Format: Kindle Edition
  • File Size: 2261 KB
  • Print Length: 310 pages
  • Page Numbers Source ISBN: 1847197906
  • Publisher: Packt Publishing (9 Nov 2009)
  • Sold by: Amazon Media EU S.à r.l.
  • Language: English
  • ASIN: B0057WR2XO
  • Text-to-Speech: Enabled
  • X-Ray:
  • Amazon Bestsellers Rank: #393,874 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?

Customer Reviews

There are no customer reviews yet on
5 star
4 star
3 star
2 star
1 star
Most Helpful Customer Reviews on (beta) 3.3 out of 5 stars  15 reviews
18 of 19 people found the following review helpful
4.0 out of 5 stars Helps when starting, great for developers who want to embed 12 Feb 2010
By Michael Galloy - Published on
Matplotlib is a popular 2-dimensional plotting library used with Python. While Matplotlib is fairly powerful, I have always had trouble figuring out how to do what I needed from the documentation. I have found the online Matplotlib documentation adequate as a reference, but not very good for getting started (especially since Matplotlib uses some terms in what I would call a "non-standard" way).

Matplotlib for Python Developers by Sandro Tosi is a welcome addition to my bookshelf. It focuses on embedding Matplotlib in applications in GTK+, Qt 4, wxWidgets, and even various web frameworks such as Pylons and Django. But the fundamental elements of the scientific Python tool chain, such as NumPy and IPython, as well as a thorough tutorial of Matplotlib itself are discussed. Both the pylab/pyplot procedural interface (useful for interactive plotting) and object-oriented interface (useful for fine-tuning and more advanced usage) are covered. Over 2000 lines of example code are downloadable from the book site.

Seeing as I don't use Matplotlib regularly, I'm sure I will using this book frequently to brush up on Matplotlib basics. And this book would have saved me a lot of time when I was writing my only major Python project, a PyQt 4 application which embedded interactive Matplotlib graphics. While this book doesn't cover every detail of Matplotlib (the online docs are good for that), it will get you started no matter how you are using it.

The publisher has made a sample chapter on embedding Matplotlib in Qt4 available for download. More information, such as a full table of contents, is also available on the publisher's site.

Full disclosure: I received a review copy of this book.
8 of 8 people found the following review helpful
4.0 out of 5 stars Decent introduction, but short on under-the-hood details 1 Feb 2011
By J. M. Hughes - Published on
Format:Paperback|Verified Purchase
I picked up this book a while back and was looking forward to see if it offered any additional insights into the inner workings of Matplotlib (mpl) beyond what is provided with the mpl package. In general, I found the book to be good for someone looking for a Python-based data plotting tool along the lines of gnuplot or MATLAB, but not so useful for shedding any additional light on the details of the underlying classes and methods of mpl.

That being said, "Matplotlib for Python developers" does a pretty good job of introducing the reader to the basic capabilities of the mpl package. It describes how to write simple Python scripts to tackle common graphing tasks, and then how to pretty up the output for inclusion in a paper or presentation. What I found lacking was the kind of in-depth knowledge I wanted to see regarding embedding mpl into Python applications. For me it would have been more useful if it had at least included an index of mpl's classes and methods, with some discussion to build on what is already included with the mpl package. The examples given were fine, in and of themselves, but there is no real guidance as to how to take it beyond that. Some additional detailed examples of how to extend mpl's classes and what methods one might want to override would have been most useful.

All in all, it's a good place to start for someone who's never worked with Matplotlib before, and it offers the more advanced reader a sampler of what can be done with a little effort. I've been recommending this book to my colleagues who have expressed an interest in using Python to expand their repertoire beyond the realm of MATLAB and gnuplot. If a second edition includes some additional low-level technical details and examples (perhaps in a couple of appendices), then I think it could be a much more useful book and appeal to a wider audience.
5 of 5 people found the following review helpful
5.0 out of 5 stars Ideal tutorial for working scientists 20 Mar 2012
By John W. Shipman - Published on
Format:Paperback|Verified Purchase
I've been teaching Python classes here at New Mexico Tech for
15 years. Until now, all I could do in the Matplotlib unit is
throw some small examples at the students and then point them
at the 800 pages of reference documentation and say "Here is
documentation for the 10,000 tiny pieces of Matplotlib. Good
luck figuring out how to assemble them."

Tosi's book is exactly what Matplotlib has needed for so long: a
proper tutorial. He starts with the absolute basics: plot Y
against X; add a title; add axis labels; plot two functions of
the same variable; and so on, a progression that eases the new
user first into the features that most people will use.

The writing is clear, and the examples constructed and explained
well, with a nice balance of theory and practice.

In particular I appreciate the shift in chapter 4 to a more
Pythonic, object-oriented approach. The author places Pylab in
its proper context (great for playing around) but I agree that
for serious production applications and modular design the object
approach is the way to go.

The only extremely minor quibbles I have are with the editing.
None of the editorial crew seem to be native English speakers.
Take for example the highly useful diagram on page 59, "Plot
types". This diagram helps you figure out what kind of plot
fills your needs. However, the title is "Chart Suggestions -- A
Tought-Starter [sic]"; that should be "Thought-Starter". On the
same diagram, there are two references to "Tree Variables" that
probably should be "Three variables".

However, don't let that put you off. This is just the right book
for people starting out. I found very few typos, and none of
them reduced the book's usefulness.
6 of 7 people found the following review helpful
1.0 out of 5 stars Matplotlib is excellent, this book doesn't provide many details 18 Nov 2011
By Daniel D. Hickstein - Published on
Matplotlib makes excellent plots, animations, etc., but there is little in this book that is not available in the matplotlib documentation: [...]

I was hoping that this book would provide some "big picture" guidance regarding how to make plots for scientific publication, or some tips to speed up the learning process. I found that I was better off just googling my questions.
20 of 27 people found the following review helpful
1.0 out of 5 stars A printout of the website 26 Oct 2010
By H. Singh - Published on
I (thankfully) just picked up the pdf from the publisher's website. Only $10 wasted instead of the full price. It's literally a printout of the website, lightly reformatted.

Suffice it to say, I was pretty pissed.
Were these reviews helpful?   Let us know

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
First post:
Prompts for sign-in

Search Customer Discussions
Search all Amazon discussions

Look for similar items by category