I found the following solution with textwidth().
. graph bar mpg trunk turn, legend(col(2) label(3 "Long text across
both columns of legend") textwidth(*6))
I don't know why I had to increase the default width instead of
decreasing it ...
Maarten buis schrieb:
> --- Friedrich Huebler <[email protected]> wrote:
>> The graph in the example below has a legend with three keys and a
>> long descriptive text in the third key. Can this long text be
>> written so that it spans both columns of the legend, making use of
>> the empty space below the second key?
>>
>> . sysuse auto
>> . graph bar mpg trunk turn, legend(col(2) label(3 "Long text across
>> both columns of legend"))
>
> yes, by going into the graph editor. Go to "Grid Edit" the bottom icon
> on the left hand toolbar, select the long label, on the top toolbar you
> see "expand cell", play around with that option till you get what you
> want.
>
> -- Hope this helps,
> Maarten
>
>
>
> -----------------------------------------
> Maarten L. Buis
> Department of Social Research Methodology
> Vrije Universiteit Amsterdam
> Boelelaan 1081
> 1081 HV Amsterdam
> The Netherlands
>
> visiting address:
> Buitenveldertselaan 3 (Metropolitan), room N515
>
> +31 20 5986715
>
> http://home.fsw.vu.nl/m.buis/
> -----------------------------------------
>
>
>
> *
> * 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/