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

Re: st: graph margins (Stata 8)


From   Roger Newson <[email protected]>
To   [email protected]
Subject   Re: st: graph margins (Stata 8)
Date   Mon, 03 Feb 2003 22:04:25 +0000

At 13:24 03/02/03 -0600, Phil Schumm wrote:
Hi,

I assume that this question is answered in the new graphics manual, but unfortunately my copy has not yet arrived (it was just ordered), and so I hope you'll forgive the question. I have been putting together a few customized schemes for specific types of work that I frequently do, and based on the schemes in the distribution the syntax seems pretty straightforward and easy to work with. One thing I haven't been able to figure out, however, is how to control the left and top margins of a graph when it is printed. I used to do this under Stata 7 with commands of the form:

translator set gph2ps lmargin 0.75
translator set gph2ps tmargin 1.10

Despite several attempts, however, I have been unable to translate these into a form which is acceptable within the context of a scheme. If anyone has already dealt with this issue in Stata 8 and can give me a hint, I'd be most grateful.
Stata 8 uses -graph export- instead of -translate-. If you type

help graph_export

in Stata 8, then you will probably be pointed in the right direction. I think the -tmargin- and -lmargin- options are what you need.

I hope this helps.

Roger


--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: [email protected]

Opinions expressed are those of the author, not the institution.

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