Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: Scheme setting for graph region

From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   st: Re: Scheme setting for graph region
Date   Tue, 25 Jan 2005 08:41:46 -0800 (PST)


Thank you for your suggestion to change a linestyle. Your message
gave me the idea to create my own linestyle for the background. I
looked at a message from Vince Wiggins from last year in which he
describes how to create a new colorstyle.

I followed the instructions by Vince and created a file called, which contains the following lines:

  set width    vthick
  set color    red
  set pattern  solid

The new style file is placed in my personal ado directory. The scheme
looks like this:

  #include s2color
  linestyle background backgroundframe

With this scheme all graphs are drawn with a red frame.
Interestingly, it is not possible to name the style, which I had done initially, because it leads to
an error message.

. scatter mpg weight
(note:  named style p16 not found in class linestyle, default
attributes used

Thanks again for your help.


--- David Harrison <[email protected]> wrote:
> Interesting... seems you are right, I can't set any options for
> background directly. I suggest making the changes to a style you
> are not likely to use (so not foreground!) and then applying the
> linestyle, e.g.
> #include s2color
> color p15line red
> linewidth p15 vthick
> linepattern p15 solid
> linestyle background p15
> -----Original Message-----
> From: Friedrich Huebler [mailto:[email protected]]
> Thank you, with -linestyle background foreground- I get a frame
> around all graphs. Is it possible to control the color and
> thickness of the frame with the scheme? The linewidth, linecolor
> and linepattern entries in my scheme are ignored by Stata.
> #include s2color
> linestyle background foreground
> linewidth background vthick
> linecolor background red
> linepattern background solid
> I don't really want a thick red frame, this is only an example.
> Friedrich Huebler
> --- David Harrison <[email protected]> wrote:
> > The graphregion is referred to as "background" in scheme files,
> so
> > try...
> > 
> > #include s2color
> > linestyle background foreground
> > 
> > -----Original Message-----
> > From: Friedrich Huebler [mailto:[email protected]]
> > 
> > I would like to create a scheme that draws all graphs with a
> > black frame. That way I would not have to include the option
> > -graphregion(lcolor(black) lwidth(thin))- with every graph. The
> > documentation of scheme files does not mention graph region
> > settings.

Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
*   For searches and help try:

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