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

st: RE: RE: graph combine: Center graph


From   "David Harrison" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: graph combine: Center graph
Date   Fri, 18 Feb 2005 15:34:22 -0000

e.g.

sysuse auto, clear
scatter mpg price, name(gr2)
scatter weight price, name(gr3)
graph combine gr2 gr3, iscale(1) graphr(margin(zero)) name(gr2and3)
scatter length price, fxsize(60) name(gr1)
graph combine gr1 gr2and3, col(1)

-----Original Message-----
From: David Harrison 
Sent: 18 February 2005 15:22
To: [email protected]
Subject: st: RE: graph combine: Center graph


I think the two -combine- statements is the way to go. You can use either -fxsize(#)- or -graphregion(margin(l+# r+#))- to shrink the width of graph1 (in the command that produces it, not the -combine-). You may also need to use -iscale()- in one or both of the -combine-s to get the labels etc looking the same.

David

-----Original Message-----
From: Falko Juessen [mailto:[email protected]]
Sent: 18 February 2005 10:14
To: [email protected]
Subject: st: graph combine: Center graph


Hello all,

I use the command - graph combine - to combine 3 graphs in one figure. I
would like to put the first graph in the first line, and the two other
ones in the second line. This works fine with the following command:

- graph combine graph1.gph graph2.gph graph3.gph, rows(2) holes(2) -

Is it possible to put graph1.gph (the single one in the first line) in the
CENTER of the first line instead of leaving one (complete) position blank?
I tried the following: First combine graph2 and graph3 (the two graphs for
the second (unproblematic) line and save this graph as "2graphs.gph").
Then I combined the two "lines" for the final graph:

- graph combine graph1.gph 2graphs.gph, rows(2).

The only problem with this is that the graph in the first line (graph1)
now spans the whole figure.

Does anyone have an idea how to center the graph in the first line without
altering the size of the graph (i.e. the width of the graph in my case)?

Thanks in advance,

Falko.


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



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