-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Matplotlib 2.x By Example
By :

Big data analytics drives innovation in scientific research, digital marketing, policy making, and much more. With the increasing amount of data from sensors, user activities, to APIs and databases, there is a need to visualize data effectively in order to communicate the insights to the target audience.
Matplotlib offers a simple but a powerful plotting library that helps to resolve the complexity in big data visualization, and turns overwhelming data into useful information. The library offers versatile plot types and robust customizations to transform data into persuasive and actionable figures. With the recent introduction of version 2, Matplotlib has further established its pivotal role in Python visualization.
Matplotlib 2.x By Example illustrates the methods and applications of various plot types through real-world examples. It begins by giving readers the basic know-how on how to create and customize plots with Matplotlib. It further covers how to plot different types of economic data in the form of 2D and 3D graphs, which give insights from a deluge of data from public repositories such as Quandl Finance and data.gov. By extending the power of Matplotlib using toolkits such as GeoPandas, Lifelines, Mplot3d, NumPy, Pandas, Plot.ly, Scikit-learn, SciPy, and Seaborn, you will learn how to visualize geographical data on maps, implement interactive charts, and craft professional scientific visualizations from complex datasets. By the end of this book, you will become well-versed with Matplotlib in your day-to-day work and be able to create advanced data visualizations.
In the first part of this book, you will learn the basics of creating a Matplotlib plot:
Once we have a solid foundation of the basics of Matplotlib, in part two of this book, you will learn how to mix and match different techniques to create increasingly complex visualizations:
Finally, in part three of this book, you will learn some practical considerations and data analysis routines that are relevant to scientific plotting:
These are the prerequisites for this book:
This book aims to help anyone interested in data visualization to get insights from big data with Python and Matplotlib 2.x. Well-visualized data aids analysis and communication regardless of the field. This book will guide Python novices to quickly pick up Matplotlib plotting skills through step-by-step tutorials. Data scientists will learn to prepare high-quality figures for publications. News editors and copywriters will learn how to create intuitive infographics to make their message crisply understandable.
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning. Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "Navigate to the Applications
folder, and then go into the Utilities
folder."
A block of code is set as follows:
evens = [] with open as f: for line in f.readlines(): evens.append(line.split()[1])
Any command-line input or output is written as follows:
sudo apt update sudo apt install Python3 build-essential
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Select Markdown
from the drop-down list on the toolbar."
Warnings or important notes appear like this.
Tips and tricks appear like this.
Feedback from our readers is always welcome. Let us know what you think about this book-what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of. To send us general feedback, simply email [email protected]
, and mention the book's title in the subject of your message. If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.
Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.
You can download the example code files for this book from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files emailed directly to you. You can download the code files by following these steps:
SUPPORT
tab at the top.Code Downloads & Errata
.Search
box.Code Download
.Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:
The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Matplotlib-2.x-By-Example. We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!
We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from https://www.packtpub.com/sites/default/files/downloads/Matplotlib2xByExample_ColorImages.pdf.
Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books-maybe a mistake in the text or the code-we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form
link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title. To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata
section.
Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy. Please contact us at [email protected]
with a link to the suspected pirated material. We appreciate your help in protecting our authors and our ability to bring you valuable content.
If you have a problem with any aspect of this book, you can contact us at [email protected]
, and we will do our best to address the problem.
Change the font size
Change margin width
Change background colour