{smcl} {* 23aug2004}{...} {hline} {center:{hi:Appearance packages {c -} schemes}} {hline} {center:"Schemes specify the overall look of a graph"} {hline} {p 4 4 4}{it} More correctly, this should say that schemes specify what individual elements of a graph look like {c -} the font size of a title, the marker color of the first plot, the width of axis lines, etc. {sf} {hline} {p 4 4 4}{it} Click anatomy below and note that we can change almost every aspect of what appears on this graph from a scheme. {sf} {p 0 2 0}. {stata anatomy101b:anatomy} {p 0 2 0}o Schemes are simply lookup tables {p 4 4 4}{it} When a graph element needs to draw itself, it asks the current scheme how it should look. {sf} {hline} {p 0 2 0}o Let's build a scheme {c -} {view scheme-ourscheme0.scheme} {p 4 4 4}{it} Now, let's draw a graph using the default scheme and our new scheme. {sf} {p 0 2 0}. {stata sysuse auto , clear} {p 0 2 0}. {stata scatter displ length weight} {p 0 2 0}. {stata scatter displ length weight , scheme(ourscheme0)} {hline} {p 0 2 0}o Let's build a better schemes {c -} {view scheme-ourscheme.scheme} {p 4 4 4}{it} And draw our graph with it. {sf} {p 4 4 4}{it} {p 0 2 0}. {stata scatter displ length weight , scheme(ourscheme)} {p 0 2 0}o How do we know what does what?{p_end} {p 2 2 0}{help scheme_files:whelp scheme files (forthcoming)} {hline} {p 4 4 4}{it} Note that our new schemes now appear in graph dialog boxes in the drop-down lists for schemes on the {cmd:overall} tab. So long as they are stored in your {help adopath:ado search path} they will be completely integrated into the graphics system. You can see that on the {cmd:overall} tab of the twoway_overlay dialog box. {sf} {p 0 2 0}. {stata db twoway_overlay} {hline} {p 4 4 4}{it} The economist scheme is particularly distinctive. Note how many things change in the two dot charts below. {sf} {p 0 2 0}. {stata graph dot weight , over(rep78) over(foreign)} {p 0 2 0}. {stata graph dot weight , over(rep78) over(foreign) scheme(economist)} {hline} {p 4 4 4}{it} For another example, try the two scatter plots below. {sf} {p 0 2 0}. {stata scatter displ length weight} {p 0 2 0}. {stata graph display , scheme(s1rcolor)} {hline} {p 4 4 4}{it} Note that our scheme can be used for all graphs without the need to add the {cmd:scheme(ourscheme)} {c -} try clicking the following two commands{sf} {p 0 2 0}. {stata set scheme ourscheme} {p 0 2 0}. {stata scatter displ length weight} {p 4 4 4}{it} We can make {cmd:ourscheme} the default scheme for all future Stata sessions, by adding the option {cmd:permanently} to the {cmd:set scheme} command.{sf} {p 0 2 0}. {stata set scheme ourscheme , permanently} {p 0 2 0}. {stata set scheme s2color , permanently} {hline} {center:{view how.smcl:<<} {view tindex.smcl:index} {view whytwo.smcl:>>}}