[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: Another graphics schemes query
Thanks to Vince for explaining these entries. I can now concentrate on
worrying about other scheme-related issues.
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Opinions expressed are those of the author, not of the institution.
[mailto:email@example.com] On Behalf Of Vince
Sent: 31 August 2006 22:17
Subject: Re: st: Another graphics schemes query
Roger Newson <firstname.lastname@example.org> asks,
> I have another graphics scheme query. In the file
> scheme-s2color.scheme (distributed with official Stata as the mother
> of all schemes), the first 3 scheme entries are:
> sequence 1210
> label "s2 color"
> system naturally_white 1
> What do these scheme entries do? I can find no mention, in the
> on-line help tree under "help scheme entries", of scheme entries
> whose attribute is "sequence", "label" or "system". However, based
> on their position in the scheme file, I can't help thinking that
> they must be doing something important that I ought to know.
This is a case where being mentioned first does not designate a place of
honor. Roger can safely ignore these lines with little repercussion.
are not standard "scheme entries" that define how objects are rendered
label "s2 color"
are used solely by the dialog system to determine how to display the
the control that allows you to select the scheme for the graph. The
box for every graph command has a pull-down list on the "Overall" tab
lets you select the scheme under which you want the graph drawn.
This list includes not only the official schemes shipped with Stata, but
any user-written schemes that can be found along your ado path. The
this case "s2 color", is what you want displayed for your scheme in that
If you not supply a label, then the scheme's filename is used.
The sequence line just determines where in the pull-down list your
occurs. If you do not supply a sequence, your new scheme will appear at
bottom of the list.
system naturally_white 1
tells the graphics system whether your scheme has a naturally white or
naturally black background. This is used only when a color is
using the multiplier syntax, e.g. color(red*.3), and when a color scheme
printed in grayscale. When attenuating colors, the system needs to know
the scheme is naturally white (meaning mix in white to attenuate colors)
naturally black (meaning to mix in black).
You can find out more about "naturally white" in -help schemes- and
-help graph display. Also see, -help set printcolor- for how this
affects printing color schemes to grayscale.
Roger needn't concern himself about this setting, nor should any other
prospective scheme writers, because all user-written schemes should use
-#include- statement to start themselves from an existing scheme. The
existing scheme will set naturally_white appropriately. Only if you
change the background color from say white to black and necessarily
all foreground colors from dark to light colors would you consider
naturally_white. In such cases, it would be better to start from a
that already had a naturally black background.
* For searches and help try:
* For searches and help try: