Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: RE: Symplacement
From
Scott Merryman <[email protected]>
To
[email protected]
Subject
Re: st: RE: Symplacement
Date
Sun, 29 Aug 2010 20:17:32 -0500
Another option is the pad the text:
#delimit;
twoway (line invest year if company==1)
(line invest year if company==2)
(line invest year if company==3),
legend(cols(1)
order(1 "Invest 1 "
2 "Invest 2 " 3 "Invest 3")
title("This fairly long title demonstrates my problem:",
placement(west) justification(left) size(small))
subtitle("I would like the column of symbols/keys left-justified rather"
"than centered, which creates awkward white space",
placement(west) justification(left) size(vsmall))
symxsize(*.5));
Scott
On Sun, Aug 29, 2010 at 8:05 PM, Martin Weiss <[email protected]> wrote:
>
> <>
>
> I could certainly see you playing with the xoffset in
>
>
> *************
> gr_edit .legend.plotregion1.xoffset = -20
> *************
>
> to nudge the keys into their desired position. Admittedly, there is probably
> a more elegant solution...
>
> HTH
> Martin
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Dorothy Bridges
> Sent: Montag, 30. August 2010 02:09
> To: [email protected]
> Subject: st: Symplacement
>
> Dear All:
>
> I have a legend with ten symbols/keys and a relatively long title. I
> would like the title to be left-justified in the legend box, and for
> the symbols/keys to be arranged in a single left-justified column.
> That is, I would like the left edge of the symbols to appear directly
> under the very first character of the title.
>
> I know how to left-justify the title of the legend, and I know how to
> make the keys appear in a single column, but for the life of me I
> cannot get that column to appear anywhere but centered under the text.
> I tried the legend suboption "symplacement," but to no avail.
>
> By way of illustration:
> webuse grunfeld,clear
> #delimit;
> twoway (line invest year if company==1)
> (line invest year if company==2)
> (line invest year if company==3),
> legend(cols(1)
> title("This fairly long title demonstrates my problem:",
> placement(west) justification(left) size(small))
> subtitle("I would like the column of symbols/keys left-justified rather"
> "than centered, which creates awkward white space",
> placement(west) justification(left) size(vsmall))
> symxsize(*.5));
>
> Many thanks,
> Dorothy
*
* 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/