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

From |
Jeph Herrin <junk@spandrel.net> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: AW: -graph combine- question |

Date |
Fri, 17 Jul 2009 17:03:46 -0400 |

Thanks for the tips. I think I've just managed to sort it out with the -by()- approach. Nick Winter wrote:

One less-than-ideal approach I often use is to use the "fill" suboptionwhen suppressing the axis on the plot. This creates extra space betweenthe plots, which can only partly be dealt with through -imargin-, but atleast they are even:. gr twoway scatter mpg price, xscale(off fill) name(g1) . gr twoway scatter mpg price, xscale(off fill) name(g2) . gr twoway scatter mpg price, name(g3) . gr combine g1 g2 g3, col(1) imargin(0 0 -4 -4)-----Ursprüngliche Nachricht----- Von: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Jeph Herrin Gesendet: Freitag, 17. Juli 2009 19:36 An: statalist@hsphsun2.harvard.edu Betreff: st: -graph combine- question 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? thanks, Jeph * * 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/ * * 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/

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

**References**:**st: -graph combine- question***From:*Jeph Herrin <junk@spandrel.net>

**st: AW: -graph combine- question***From:*"Martin Weiss" <martin.weiss1@gmx.de>

**Re: st: AW: -graph combine- question***From:*Nick Winter <nwinter@virginia.edu>

- Prev by Date:
**RE: st: Graphing table of odds ratios generated by e.g., gologit2** - Next by Date:
**Re: AW: st: AW: -twoway , title()- bug?** - Previous by thread:
**Re: st: AW: -graph combine- question** - Next by thread:
**st: Formating a date to a local macro variable** - Index(es):

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