Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

RE: st: multiple y-axes

From   "Kieran McCaul" <>
To   <>
Subject   RE: st: multiple y-axes
Date   Fri, 3 Sep 2010 08:41:46 +0800


thanks Scott, that did th etrick

-----Original Message-----
From: [] On Behalf Of Scott Merryman
Sent: Thursday, 2 September 2010 8:05 PM
Subject: Re: st: multiple y-axes

sysuse auto
twowy hist mpg, yscale(alt axis(1)) || line weight mpg, sort yaxis(2)
yscale(alt axis(2))


On Wed, Sep 1, 2010 at 11:54 PM, Michael N. Mitchell
<> wrote:
> Well, that is what happens when you suggest an idea without trying it. I am
> stumped on this, because the documentation says -yscale(alt)- should switch
> the position of the y axis from right to left (or vice versa), but I cannot
> find any combination of -yaxis()- and -yscale()- that will solve this.
> Although this is not a fun suggestion, you could use the graph editor,
> choosing the -grid edit- mode to move the axis from the left to the right,
> and then from the right to the left. I bet, however, someone else has a
> better idea!
> Michael N. Mitchell
> Data Management Using Stata      -
> A Visual Guide to Stata Graphics -
> Stata tidbit of the week         -

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index