[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
Ulrich Kohler <[email protected]> |

To |
[email protected] |

Subject |
st: RE: graph combine, asis |

Date |
Thu, 22 Apr 2004 09:15:11 +0200 |

```
Hi Ben,
Here is a Stata/LaTeX-Solution. The following Stata-Code produces graphs.eps -
completely automated and reproducable. You may change the width of the graphs
to get them all on one page.
Assuming that you have 12 graphs saved as memory graphs with names g1, g2 ...
g12:
---------------------------------------------
file open graphs using mygraph.tex, write
file write graphs "\documentclass{<whatever>}" _n
file write graphs "\usepackage{graphicx}" _n _n
file write graphs "\begin{document}" _n
forv i=1/12 {
graph display g`i'
graph export g`i'.eps, replace
file write graphs "\includegraphics[width=4cm]{g`i'}" _n
}
file write graphs "\end{document}" _n
!latex graphs
!dvips -o graphs.ps graps.dvi
--------------------------------------------------------
(Code not tested, but you get the idea)
Jann, Ben wrote:
> Because I want to look at, say, 12 graphs arranged on
> one single sheet (and possibly print the sheet) to get
> an overview and to be able to compare the graphs directly
> (without giving too much attention to details; if details
> matter, one can still zoom in single graphs). The
> 12-graph-sheet is only for inspection, though. What will
> be used later on are the single graphs. Thus, it would
> be nice if the sheet contains exact representations of
> the single graphs.
>
> Of course, doing all this with -graph combine- is very
> inefficient. Maybe, a better procedure would be to
> translate the graphs to eps or emf or so and then launch
> some external utility which arrays them together into a
> single sheet. Does anyone know of such a tool?
>
> ben
>
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]] On Behalf Of Nick Cox
> > Sent: Wednesday, April 21, 2004 2:25 PM
> > To: [email protected]
> > Subject: st: RE: RE: RE: graph combine, asis
> >
> >
> > Why do you want this? To review
> > a series of graphs, I use the -showgph-
> > command from SSC to get a slide show.
> > (When I say from SSC, I mean an updated
> > version of the program on SSC for Stata 8,
> > not public, but easily made so.)
> >
> > Nick
> > [email protected]
>
> *
> * 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/
--
[email protected]
+49 (030) 25491-361
*
* 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/
```

**References**:**st: RE: RE: RE: RE: graph combine, asis***From:*"Jann, Ben" <[email protected]>

- Prev by Date:
**st: xtlogit and Hosmer-Lemeshow goodness of fit** - Next by Date:
**Re: st: Stata (gllamm) benchmarks for different platforms?** - Previous by thread:
**st: table with ttest** - Next by thread:
**RE: st: RE: RE: RE: RE: graph combine, asis** - Index(es):

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