Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Order of colours in graphs

From   Nick Cox <>
Subject   Re: st: Order of colours in graphs
Date   Tue, 21 Aug 2012 14:22:07 +0100

The default depends on what graph scheme you have -set-, but that in
terms defaults to -s2color-. You can change the default. Just look at
the documentation on graph schemes.

At most you have default colors for a particular kind of graph; for
example, histograms under many schemes  have bar colour khaki.


On Tue, Aug 21, 2012 at 2:04 PM, Amal Khanolkar <> wrote:

> I've been producing some graphs in stata. If one doesn't specify the colours, what is Stata's default in the order of colours used?
> I've been using the following code for my graphs, but I assume that the default order of colours is the same for all graphs:
> xi: regress bviktbs i.motherland*i.immigyr_cat sex byear i.magecat i.parity i.famsit_new i.smoke1 i.gestht i.gestdt i.MBMI mlangd  if multibirth==1, vce(robust)
> qui foreach x of var sex byear mlangd _Imagecat_2-_IMBMI_3 {
>         sum `x', d
>         replace `x' = r(p50)
>         }
> predict p
> predict se, stdp
> tw (line p motherland if immigyr_cat==1, sort) (line p motherland if immigyr_cat==2, sort) (line p motherland if immigyr_cat==3, sort) (line p motherland if immigyr_cat==4, sort) (line p motherland if immigyr_cat==5, sort) (line p motherland if immigyr_cat==6, sort)

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index