Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: RE: bug with -noextend- option?


From   "Fiedler, James (JSC-SK)[USRA]" <james.fiedler-1@nasa.gov>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: RE: bug with -noextend- option?
Date   Tue, 2 Feb 2010 10:40:02 -0600

Spoke too soon!  I guess it doesn't do what I want.  Thanks for the suggestion, though. 

I'll find a work-around (maybe stretch a line between some hidden fake data), but here's what I'm trying to do: Suppose I want to extend the range of the graph to give the data a little more, but only want the axis to extend from the min to max data values.  With nofextend the line still covers the range of the graph, beyond the max and min of the data.  

I still don't understand what noextend is doing.  Using noextend with some data I get lines that don't extend through all labels, and with some other data it produces an axis line that continues through the inner and outer graph regions.  Maybe there's a logic to it that I'm missing?  In any case, as I said, I think I'll try to find a work-around.

James
________________________________________
From: owner-statalist@hsphsun2.harvard.edu [owner-statalist@hsphsun2.harvard.edu] On Behalf Of Fiedler, James (JSC-SK)[USRA] [james.fiedler-1@nasa.gov]
Sent: Tuesday, February 02, 2010 10:25 AM
To: statalist@hsphsun2.harvard.edu
Subject: RE: st: RE: bug with -noextend- option?

Thank you, Scott.  This does what I want.

James
________________________________________
From: owner-statalist@hsphsun2.harvard.edu [owner-statalist@hsphsun2.harvard.edu] On Behalf Of Scott Merryman [scott.merryman@gmail.com]
Sent: Monday, February 01, 2010 6:45 PM
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: RE: bug with -noextend- option?

Try this:

-scatter lexp gnppc, yscale(nofextend) xscale(nofextend)
ylabel(minmax) xlabel(minmax)-

Scott


On Mon, Feb 1, 2010 at 3:07 PM, Fiedler, James (JSC-SK)[USRA]
<james.fiedler-1@nasa.gov> wrote:
> Hello,
>
> Using Stata 11, I think there might be a bug with the -noextend- option for axis scales.  If I do
>
> sysuse lifeexp, clear
> scatter lexp gnppc, yscale(noextend) xscale(noextend)
>
> I get strange looking axis lines.  Specifically, the x-axis line extends from < 0 to ~3500, y-axis line from ~72 to ~79.   If I read the help file description correctly, -noextend-  should make the line extend as far as the axis labels (I am inferring from the description for -extend-).  Setting yscale(range()) or xscale(range()) don't seem to help.
>
> Is this a bug, or am I doing something incorrectly?
>
> Thanks,
> James Fiedler
>

>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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