Statalist


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

Re: AW: st: line spacing in legend subtitle


From   Miranda Kim <mk@mrc.soton.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: AW: st: line spacing in legend subtitle
Date   Thu, 01 Oct 2009 10:11:55 +0100

Thank you so much Marteen and Martin for these very helpful suggestions.
I had never used graph editor and knowing how to accordingly change my code is also very helpful so I don't have to do it manually each time.
Very much appreciated!

Martin Weiss wrote:
<>
You can also have a -linegap- in the -subtitle-. Playing around with the
dialog boxes is even more worthwhile for difficult cases...



*************
sysuse auto, clear
gen number=_n

tw(line price number, sort) /* */ (line length number, yaxis(2)) /* */ (scatter trunk number, yaxis(2)) /* */ (scatter weight number), legend(rows(1) /* */ subtitle("Conditional growth" "(11-19 weeks, 19-34 weeks)", /* */ margin(medlarge) linegap(2)))
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Martin Weiss
Gesendet: Donnerstag, 1. Oktober 2009 10:26
An: statalist@hsphsun2.harvard.edu
Betreff: AW: st: line spacing in legend subtitle


<>
"Playing around" would tell you that you can place a -margin- around the
-subtitle-


*************
sysuse auto, clear
gen number=_n

tw (line mpg num) (line pr num) /* */ (line head num) (line tr num), /* */ legend(order (4 3 2 1) row(1)) /* */ legend(subtitle("Conditional growth" /* */ "(11-19 weeks, 19-34 weeks)",) /* */ margin(medlarge))
*************



HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Maarten buis
Gesendet: Donnerstag, 1. Oktober 2009 10:20
An: statalist@hsphsun2.harvard.edu
Betreff: Re: st: line spacing in legend subtitle

The easiest solution to problems like these is to play around in the graph
editor (assuming you have Stata 10 or 11). In Stata 10, go within the graph
window to "File" and than click on "Start Graph Editor".

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


--- On Thu, 1/10/09, Miranda Kim <mk@mrc.soton.ac.uk> wrote:

From: Miranda Kim <mk@mrc.soton.ac.uk>
Subject: st: line spacing in legend subtitle
To: statalist@hsphsun2.harvard.edu
Date: Thursday, 1 October, 2009, 9:09 AM
Hello,
I've got a graph with a legend subtitle that spans two
lines, and I wonder how I can increase the gap between these
lines, and also the gap between the subtitle and the legend
symbols below it...

my code at the moment is:

legend(order (4 3 2 1) row(1)) legend(subtitle("Conditional
growth" "(11-19 weeks, 19-34 weeks)")))

I tried just adding blank lines in the subtitle, but it
looks a bit messy...

legend(order (4 3 2 1) row(1)) legend(subtitle("Conditional
growth" " " "(11-19 weeks, 19-34 weeks)" " ")))

Many thanks for any suggestions...

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


Send instant messages to your online friends http://uk.messenger.yahoo.com
*
*   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/



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



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