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

Re: st: Re: RE: graph range


From   "R.E. De Hoyos" <[email protected]>
To   <[email protected]>
Subject   Re: st: Re: RE: graph range
Date   Tue, 1 Nov 2005 15:48:29 -0000

Dear Alan,

That did the trick.

Many thanks,
Rafa

----- Original Message ----- From: "Alan Neustadtl" <[email protected]>
To: <[email protected]>
Sent: Tuesday, November 01, 2005 3:35 PM
Subject: Re: st: Re: RE: graph range



It sound like the ylabel option may work for you.  Compare the
following two examples:

sysuse auto
twoway (scatter mpg displacement)
twoway (scatter mpg displacement, ylabel(-40(10)40))

Best,
Alan

On 11/1/05, R.E. De Hoyos <[email protected]> wrote:
Thanks for your answer. I apologise for the previous email, I should have
been more explicit.

I am plotting a two-way graph with two different y-axes and a single x one.
The x-axis is time, one of the y-axis is GDP growth and the other is
inflation. For presentation purposes, I want the inflation plot to range
from -150 to +150, however in my data there is no episode with deflation. I
want to tell Stata to take those negative values although there will be
nothing to graph.

I hope I was clear this time,

Rafa

----- Original Message -----
From: "Nick Cox" <[email protected]>
To: <[email protected]>
Sent: Tuesday, November 01, 2005 2:51 PM
Subject: st: RE: graph range


> -if-
>
> Nick
> [email protected]
>
>> -----Original Message-----
>> From: [email protected]
>> [mailto:[email protected]]On Behalf Of
>> R.E. De Hoyos
>> Sent: 01 November 2005 13:03
>> To: [email protected]
>> Subject: st: graph range
>>
>>
>> Statalist,
>>
>> How can I limit the plot range in a twoway graph?
>>
>> Best,
>>
>> Rafa
>> *
>> * 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/
>>
>
> *
> * 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/
>
*
* 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/

*
*   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/

*
*   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