Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

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

st: RE: Symplacement

From   "Martin Weiss" <>
To   <>
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...


-----Original Message-----
[] On Behalf Of Dorothy Bridges
Sent: Montag, 30. August 2010 02:09
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
twoway (line invest year if company==1)
(line invest year if company==2)
(line invest year if company==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))

Many thanks,
*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index