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

st: RE: -graph combine- question

From   "Nick Cox" <>
To   <>
Subject   st: RE: -graph combine- question
Date   Fri, 17 Jul 2009 18:56:12 +0100

You have to fiddle with -fxsize()- and -fysize()-. 

Otherwise, and more work, you often get a better result by programming a
command to have a -by()- option. 


Jeph Herrin

I am using Stata 10.1.

I am trying to stack up several graphs that have identical
layouts, with a shared x-axis. Thus, I would like to have the
x-axis only appear at the bottom of the bottom graph.

Therefore, I suppress the x-axis on all but the last graph,
gN.gph, and then use:

   graph combine g1.gph ... gN.gph, col(1) xcommon imargin(0 0 0 0)

This works fine except that the bottom graph is compressed relative
to the other graphs - because of the additional axis.

I have fiddled with the aspect ratio of the bottom graph to try to
get the final combined graph to look the same as the others, but
cannot get a good fit.  Is there a better way to do this? At the
least, I need a formula for how much height the axis labels add
to my graph, so I can expand accordingly. Any ideas?

*   For searches and help try:

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