Stata 15 help for gr7color

help gr7color (out-of-date command) -------------------------------------------------------------------------------

Warning

This help file documents the old version of Stata's graph command. See graph for the modern version.

Stata runs the old version of graph whenever graph is invoked under version control (see version) or when you use the graph7 or gr7 command.

graph7 command common options -- color and shading options

{graph7 | gr7} [varlist] [weight] [if exp] [in range] [, graph_type specific_options common_options]

The color and shading common_options are

pen(#...#) shading(#...#)

by is allowed; see by.

Information on the graph7 command and the different graph_types is found in graph7. This entry details the color and shading common_options. Help for the other common_options is also available. See gr7axes for title and axes; gr7sym for symbols and lines; gr7other for saving, printing, and multiple images.

Options

pen(#...#) specifies the pen to be used for each graphical element. Spaces are not allowed between specified pen numbers. All graphs are drawn with a theoretical concept called a pen. On color monitors, different pens are mapped to different colors. On monochrome monitors, all pens look alike (except pen 1 is sometimes dimmer than the others). When you print a graph on monochrome devices, the thicknesses of the pens can be altered. On color printers, different colors can be assigned.

Pens are numbered 1 through 9. graph7 uses pen 1 for labeling. Thereafter, each graphical element, corresponding to the variables in the varlist, are graphed using successively higher numbered pens, wrapping back to pen 2 after pen 9.

Examples: "graph7 y1 y2 x" graphs y1 vs. x using pen 2 and y2 vs. x using pen 3. "graph7 y1 y2 x, pen(23)" does the same thing. "graph7 y1 y2 x, pen(22)" graphs both series using the same pen.

shading(#...#) specifies the amount of shading on a scale of 1 to 4, with 1 being the lightest and 4 the darkest. Spaces are not allowed between specified shading numbers. shading() is allowed with histogram (see gr7hist), bar (see gr7bar), and pie (see gr7pie). For histogram, only one number is specified and the default value is 3. For bar and pie, a shading value is specified for each variable. The default is 31423142...

Examples: . graph7 x, hist shading(4) . graph7 a b c, bar shading(413) . graph7 a b c d e, pie shading(41324)

Also see

Help: [G-2] graph7, gr7axes, gr7bar, gr7box, gr7hist, gr7matrix, gr7oneway, gr7other, gr7pie, gr7star, gr7sym, gr7twoway


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