Reader small image

You're reading from  Building Data Science Solutions with Anaconda

Product typeBook
Published inMay 2022
PublisherPackt
ISBN-139781800568785
Edition1st Edition
Concepts
Right arrow
Author (1)
Dan Meador
Dan Meador
author image
Dan Meador

Dan Meador is an Engineering Manager at Anaconda and is the creator of Conda as well as a champion of open source at Anaconda. With a history of engineering and client facing roles, he has the ability to jump into any position. He has a track record of delivering as a leader and a follower in companies from the Fortune 10 to startups.
Read more about Dan Meador

Right arrow

Visualization with Matplotlib

Like many other things discussed in this book, there are many packages that can tackle any particular area. For the job of visualizing, Matplotlib is easily one of the most widely used. Not only is it quite easy to show simple graphs, but there are also many advanced options that you can use as well. It also works very well with panda DataFrames and has carved out its place as one of the most widely used packages in data science.

Let's start with a straightforward example of how to display a plot.

There are a few basic steps that you should take almost every time you want to show a plot:

  1. Preparing the data
  2. Plotting the data
  3. Customizing the plot
  4. Showing the plot

We'll walk through all of these, but we've already done much of step one in the Cleaning data with pandas section. Let's take that data and group it to focus on the categories of majors.

Preparing data for plotting

Let's take the existing...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Building Data Science Solutions with Anaconda
Published in: May 2022Publisher: PacktISBN-13: 9781800568785

Author (1)

author image
Dan Meador

Dan Meador is an Engineering Manager at Anaconda and is the creator of Conda as well as a champion of open source at Anaconda. With a history of engineering and client facing roles, he has the ability to jump into any position. He has a track record of delivering as a leader and a follower in companies from the Fortune 10 to startups.
Read more about Dan Meador