Color palette


There is no better way to choose colors than to see the actual colors, not just the list of colors as in those you get when you type:

help colorstyle

Stata has a built-in color viewer -palette color-, but this command can only show you upto two colors: Figure 1 results from typing:

palette color blue khaki



There are at least 2 user-written programs to display color palettes: Nick Winter’s -full_palette- and Michael Mitchell’s -vgcolormap-. -full_palette- displays a palette of Stata’s graph colors, with their names and RGB numbers (Figure 2). -vgcolormap- displays Stata’s colors and their names (Figure 3).

To use -full_palette-, install the program by typing:

ssc install full_palette

then type (start with an empty data set):

full_palette

Figure 2: full_palette


To use -vgcolormap-, install the following:

net from http://www.stata-press.com/data/vgsg
net install vgsg

then type:

vgcolormap

Figure 3: vgcolormap


Note that by installing vgsg, you are not only installing vgcolormap, but also other resources associated with the book A Visual Guide to Stata Graphics, Third Edition. To find out what has been installed, type:

whelp vgsg

2 Responses

  1. […] default background colour, as I did recently, its name is “ltbluishgray”. Thanks to the Stata Daily blog, its Red Green Blue (RGB) value is 234,242,243. Its hexadecimal value is […]

Leave a Reply