Bookmark and Share

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: getting the range of labels on a graph


From   Antoine Terracol <[email protected]>
To   [email protected]
Subject   Re: st: getting the range of labels on a graph
Date   Tue, 07 Jun 2011 11:47:46 +0200

Answering my own question, for anyone interested:

Instead of combining all my subgraphs in one step, I combined them in two steps, using -ycommon- and/or -xcommon- when suitable.

Antoine


On 07/06/11 10:05, Antoine Terracol wrote:
Hello _all,

would anyone know of a way to automatically get the range of the x- and
y-axis used by Stata in a -twoway- graph?

I need to write a small command to automate the production of a specific
graphic involving -graph combine-, and for the result to look nice, I
need to make some axis coincide, which in turns require that I set the
-xlabel- and -ylabel- of subgraphics to match those of the main -twoway-
graph (xhich itself is a superposition of a scatterplot and of a
nonparametric regression with confidence intervals).

The program would implement the following steps:

1. get the name of two variables from the syntax
2. draw the main -twoway- graph
3. somehow get the labels range of that graph
4. use the ranges to tweak the secondary graphs so that everything looks
nice

And I'm stuck at step 3...

Antoine



--
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.

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


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