st: AW: RE: axis(1) and axis(2) scales in graphs

 From "Martin Weiss" <[email protected]> To <[email protected]> Subject st: AW: RE: axis(1) and axis(2) scales in graphs Date Tue, 26 Jan 2010 13:47:52 +0100

```<>

" I am not completely clear what the problem is"

Actually, I found the problem exceptionally clear in this case:

*************
clear*
set seed 123456
set obs 100
gen time=_n
gen serieA=rnormal()
gen serieB=rnormal(1,2)
tw (line serieA time, yaxis(1) yli(0)) (line serieB time, yaxis(2))
*************

I just did not know how to align the zero point on the left and right axis,
to be honest...

HTH
Martin

-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Nick Cox
Gesendet: Dienstag, 26. Januar 2010 12:38
An: [email protected]
Betreff: st: RE: axis(1) and axis(2) scales in graphs

I am not completely clear what the problem is, but it seems that just
dividing one series by some constant might be simpler for you.

Is either series ever negative?

Nick
[email protected]

Leandro Brufman

I am doing a -graph twoway line- with depicting two series over time
with different axis
- graph twoway (line serieA time, yaxis(1)) (line serieB time, yaxis(2))
-

I would like to have both axis(1) and axis(2) with the same "zero
level".  That is, I would like both axis to be zero at the exact same
point in the graph.
I am repeating this graph for many samples, so fiddling with -range

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