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
Publisher resources
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
IPython Interactive Computing and Visualization Cookbook  Second Edition
Learn to use IPython and Jupyter Notebook for your data analysis and visualization work. About This …
book
Head First Design Patterns, 2nd Edition
You know you don’t want to reinvent the wheel, so you look to design patterns—the lessons …
book
Pandas 1.x Cookbook
Use the power of pandas to solve most complex scientific computing problems with ease. Revised for …
book
Matplotlib 3.0 Cookbook
Build attractive, insightful, and powerful visualizations to gain quality insights from your data Key Features Master …