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

RE: st: RE: Rare bug/feature in -graph,ylog-


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: Rare bug/feature in -graph,ylog-
Date   Mon, 4 Nov 2002 15:54:15 -0000

Roger Newson

> However, even if I do specify the axis labels and/or 
> scales, -graph- still 
> complains in the same way:
> 
> . list gpm in 1
> 
>             gpm
>    1.  .0243902
> 
> . grap gpm weight in 1,ylog ylab(0.01 0.02 0.03)
> nonpositive values encountered
> r(411);
> 
> . grap gpm weight in 1,ylog ylab(0.01 0.02 0.03) ysc(0.01 0.03)
> nonpositive values encountered
> r(411);
> 
> In these cases, there is no need for Stata to guess default 
> axis widths and 
> to encounter non-positive values.
> 

Indeed. Evidently the order Stata 
follows is (for concreteness, y axis here as example): 

1. a. determine range of values to be plotted on 
y axis 

b. if it's 0, stretch interval to be plotted to [value - 1, 
value + 1]). 

2. determine whether -yla()- or -ysc()- settings change 
this. 

I think you are right insofar as 1b. could conceivably 
follow 2. 

Nick 
[email protected] 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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