March 2014
Beginner to intermediate
222 pages
4h 7m
English
The default colors used by matplotlib are rather bland. We might have our own preferences of what convenient colors are. We might want to have figures that follow a predefined color scheme so that they fit well within a document or a web page. More pragmatically, we might simply have to make figures for a document that will be printed on a black-and-white printer. In this recipe, we are going to see how to define our own colors.
There are multiple ways to define colors in matplotlib. Some of them are as follows:
(1.0, 0.0, 0.0) ...Read now
Unlock full access