Chapter 10
Getting a Crash Course in Matplotlib
IN THIS CHAPTER
Creating a basic graph
Adding measurement lines to your graph
Dressing your graph up with styles and color
Documenting your graph with labels, annotations, and legends
Most people visualize information better when they see it in graphic, versus textual, format. Graphics help people see relationships and make comparisons with greater ease. Even if you can deal with the abstraction of textual data with ease, performing data analysis is all about communication. Unless you can communicate your ideas to other people, the act of obtaining, shaping, and analyzing the data has little value beyond your own personal needs. Fortunately, Python makes the task of converting your textual data into graphics relatively easy using Matplotlib, which is actually a simulation of the MATLAB application. You can see a comparison of the two at https://pyzo.org/python_vs_matlab.html
. (If you don’t know how to use MATLAB, see MATLAB For Dummies, by John Paul Mueller [Wiley]), if you’d like to learn.)
Get Python for Data Science For Dummies, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.