Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: axis label
From
Maarten buis <[email protected]>
To
[email protected]
Subject
Re: st: axis label
Date
Wed, 27 Oct 2010 15:13:10 +0100 (BST)
--- On Wed, 27/10/10, Fred Dzanku wrote:
> when I try plotting the following graph adding the "by"
> option the second y-axis label never appears.
> What am I doing wrong?
>
> ----------------------------------------------
> twoway fpfit povgap aglabprw [pw=hwt], ///
> c(l) lwidth(medthick) lpattern("solid") || ///
> fpfit povsev aglabprw [pw=hwt], c(l) ///
> lwidth(medthick) lpattern("longdash") ///
> yaxis(2) xtitle("{bf:Output}") ///
> ytitle("{bf:Income}") ///
> ytitle("{bf:All}", axis(2)) ///
> legend(label(1 "{bf:my game}") ///
> label(2 "{bf:his game}")) ///
> by(zone, row(1))
I see what you mean. Here is an example of this phenomenon that
everybody can reproduce:
*------------ begin example ----------------
sysuse auto, clear
twoway fpfit price mpg || ///
fpfit trunk mpg, yaxis(2) ///
by(foreign) ytitle("trunk", axis(2))
*------------- end example -----------------
This is not an answer, but it usually helps potential answerers to
have an example that reproduces the problem.
Hope this helps,
Maarten
--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany
http://www.maartenbuis.nl
--------------------------
*
* 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/