Book description
Discover how easy it can be to create great scientific visualizations with Python. This cookbook includes over sixty matplotlib recipes together with clarifying explanations to ensure you can produce plots of high quality.
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 headfirst, handson 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.
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
Table of contents

matplotlib Plotting Cookbook
 Table of Contents
 matplotlib Plotting Cookbook
 Credits
 About the Author
 About the Reviewers
 www.PacktPub.com
 Preface

1. First Steps
 Introduction
 Installing matplotlib
 Plotting one curve
 Using NumPy
 Plotting multiple curves
 Plotting curves from file data
 Plotting points
 Plotting bar charts
 Plotting multiple bar charts
 Plotting stacked bar charts
 Plotting backtoback bar charts
 Plotting pie charts
 Plotting histograms
 Plotting boxplots
 Plotting triangulations

2. Customizing the Color and Styles
 Introduction
 Defining your own colors
 Using custom colors for scatter plots
 Using custom colors for bar charts
 Using custom colors for pie charts
 Using custom colors for boxplots
 Using colormaps for scatter plots
 Using colormaps for bar charts
 Controlling a line pattern and thickness
 Controlling a fill pattern
 Controlling a marker's style
 Controlling a marker's size
 Creating your own markers
 Getting more control over markers
 Creating your own color scheme
 3. Working with Annotations
 4. Working with Figures
 5. Working with a File Output
 6. Working with Maps
 7. Working with 3D Figures
 8. User Interface
 Index
Product information
 Title: matplotlib Plotting Cookbook
 Author(s):
 Release date: March 2014
 Publisher(s): Packt Publishing
 ISBN: 9781849513265
You might also like
book
Mastering matplotlib
A practical guide that takes you beyond the basics of matplotlib and gives solutions to plot …
book
Python Data Visualization Cookbook  Second Edition
Over 70 recipes to get you started with popular Python libraries based on the principal concepts …
book
Matplotlib for Python Developers
Leverage the power of Matplotlib to visualize and understand your data more effectively About This Book …
video
Matplotlib for Python Developers
Matplotlib is a multiplatform data visualization tool built upon the Numpy and Scipy framework. One of …