Statalist


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

AW: AW: st: line spacing in legend subtitle


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   AW: AW: st: line spacing in legend subtitle
Date   Thu, 1 Oct 2009 11:14:49 +0200

<> 


Also note the "record" button at the top which lets you record and
subsequently replay your changes. Look at the content of the resulting file
with a text editor to get a grip on the options that were affected...



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Miranda Kim
Gesendet: Donnerstag, 1. Oktober 2009 11:12
An: statalist@hsphsun2.harvard.edu
Betreff: Re: AW: st: line spacing in legend subtitle

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/


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