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

RE: st: RE: stata graphs (stata 8), y- or x-label as text over two lines


From   "Maarten Buis" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: stata graphs (stata 8), y- or x-label as text over two lines
Date   Mon, 18 Oct 2004 11:54:26 +0200

Dear Andreas,

The trick here is to use ylabel(1 "Example" 2 "for" 3  `" "text"  "labels" "'),  i.e. surround the  "text" "labels" with - `" "' - 

-----Original Message-----
From: Andreas Stiehler [mailto:[email protected]]
Sent: maandag 18 oktober 2004 11:41
To: [email protected]
Subject: Re: st: RE: stata graphs (stata 8), y- or x-label as text over two lines

Dear Marten:
>
> Do you mean that you want the title of the x-axis and y-axis to run
> over two lines, or do you want the labels for these axes to run over
> two lines? The labels are the numbers at the tick-marks.
A want the labels for these axis to run over two lines. Instead of
numbers you can use text (E.g. ylabel(1 "Example" 2 "for" 3 "text
labels")). However, I do not know a way to run "text labels" over two
lines.  Do you?

Thank you!
Andreas

>  If you want the titles of the axes to run over two lines than the
> code below will work.
>
> sysuse auto
> scatter headroom mpg, xtitle("Mileage" "(mpg)") ytitle("Headroom"
> "(inches)")
>
> Maarten
>
> -----Original Message-----
> From: Andreas Stiehler [mailto:[email protected]]
> Sent: maandag 18 oktober 2004 11:07
> To: [email protected]
> Subject: st: stata graphs (stata 8), y- or x-label as text over two
> lines
>
> Dear Statalisters,
>
> is there any opportunity to extend y- or x-labels as text over two
> lines (as it is possible for legends or titles)?
>
> A command like: ylabel (1 "over" "two" 2 "lines") does not work.
> The only opportunity I know (thanks to Uli) is somethings like: ylabel(
> 0.95 "over" 1.05 "two" 2 "lines")
> But it does only work for y- but not for x-labels.
>
> As an economic research company we need this kind of presentations
> quite often.
> Therefore, all kinds comments or suggestions are highly appreciated!
> Thank you!
>
> Andreas
>
>
>
> Dr. Andreas Stiehler
> Analyst
>
> Berlecon Research GmbH
> Oranienburger Stra�e 32
> D-10117 Berlin
> Fon: +49 30 285296-0
> Fax: +49 30 285296-29
> E-Mail: [email protected]
>
> Web: www.berlecon.de
> Analysten-Weblog: weblog.berlecon.de
> Newsletter-Abo: mailto:[email protected]
> --------------------------------------------------------------------
> Berlecon Research - Wir analysieren das Potenzial neuer Technologien
> --------------------------------------------------------------------
>
> *
> *   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/
>


Dr. Andreas Stiehler
Analyst

Berlecon Research GmbH
Oranienburger Stra�e 32
D-10117 Berlin
Fon: +49 30 285296-0
Fax: +49 30 285296-29
E-Mail: [email protected]

Web: www.berlecon.de
Analysten-Weblog: weblog.berlecon.de
Newsletter-Abo: mailto:[email protected]
--------------------------------------------------------------------
Berlecon Research - Wir analysieren das Potenzial neuer Technologien
--------------------------------------------------------------------


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