Colors in Matplotlib

Named colors can be specified by using a single character enclosed in quotes. For example, line_color = "r".

The named colors are:

b: blue
g: green
r: red
c: cyan
m: magenta
y: yellow
k: black
w: white

Other named colors can be seen illustrated here.

A RGB color can be specified in hexadecimal format as line_color = "#eeefff"

Reference: http://matplotlib.org/api/colors_api.html

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s