Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

Re: st: multiple y-axes

From   Scott Merryman <>
Subject   Re: st: multiple y-axes
Date   Thu, 2 Sep 2010 07:04:53 -0500

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:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index