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

Re: st: problem with graphs by() option.


From   [email protected]
To   [email protected]
Subject   Re: st: problem with graphs by() option.
Date   Thu, 10 Feb 2005 14:12:16 -0600

Ricardo,

Though not identical to something like:

. sysuse auto
. scatter price mpg , by(fore) ytitle(Price) l2title(US Dollar)

drawing each graph separately and then combining them is close:

. scatter price mpg if for == 1, subtitle("Domestic", box bex) ///
 l2title(Price) ytitle(US Dollars) saving(graph1, replace) nodraw

. scatter price mpg if for == 1, subtitle("Foreign", box bex) ///
 ytitle("")  ylabel(,  noticks nolabels) saving(graph2, replace) nodraw

. graph combine "graph1.gph" "graph2.gph", ycommon xcommon


Scott


----- Original Message -----
From: Ricardo Ovaldia <[email protected]>
Date: Thursday, February 10, 2005 11:08 am
Subject: st: problem with graphs by() option.

> Dear all,
> 
> I have created a graph with two side-by-side plots. I
> used the ytitle and the -l2title()- to place two
> titles on the y-axis. The problem is that the second
> title, the one from -l2title()-, appears on both
> plots. I would like to supress this title from the
> second graph. That is, I only want titles on the left
> yaxis of the first (left) plot.
> 
> Thank you,
> Ricardo.
> 


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