Bookmark and Share

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]

st: RE: Symplacement


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: Symplacement
Date   Mon, 30 Aug 2010 03:05:41 +0200

<>

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/

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index