Skip to Content
Hands-on Matplotlib: Learn Plotting and Visualizations with Python 3
book

Hands-on Matplotlib: Learn Plotting and Visualizations with Python 3

by Ashwin Pajankar
November 2021
Beginner to intermediate
305 pages
5h 1m
English
Apress
Content preview from Hands-on Matplotlib: Learn Plotting and Visualizations with Python 3
© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. PajankarHands-on Matplotlibhttps://doi.org/10.1007/978-1-4842-7410-1_10

10. Working with Colors

Ashwin Pajankar1  
(1)
Nashik, Maharashtra, India
 

In the previous chapter, you learned how to visualize pie charts and polar charts with Matplotlib.

In this chapter, you will learn how to work with colors. The following are the routines you will learn to use in this chapter:
  • pcolor()

  • pcolormesh()

  • colorbar()

After reading this chapter, we will be able to work with colors in Matplotlib.

pcolor()

The routine pcolor() creates a pseudocolor plot with a rectangular (nonsquare) grid. Pseudocolor means the object or image is rendered in colors different than those in which it ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Data Analytics: With Pandas, NumPy, and Matplotlib

Python Data Analytics: With Pandas, NumPy, and Matplotlib

Fabio Nelli

Publisher Resources

ISBN: 9781484274101Purchase LinkPublisher Website