Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Legend Text Color


From   "Benjamin Allaire" <btallaire@hotmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Legend Text Color
Date   Mon, 26 Feb 2007 19:51:39 -0600

:01C75A11]
Sender: owner-statalist@hsphsun2.harvard.edu
Precedence: bulk
Reply-To: statalist@hsphsun2.harvard.edu
Errors-To: statalist-owner@hsphsun2.harvard.edu
Hi all -
Had a graphing conundrum.  I am plotting a graph where I basically want the
marker label to serve as the point on the graph.  So, I am basically settin=
g
the marker symbol to invisible and positioning the label at the 0 clock
position.  This is all fine and dandy, except now the legend has no symbol
to correspond to the marker (because its invisible, right?). What I would
like to do is to change the color in the legend to correspond with the labe=
l
- which means I would need 3 different colors for the text in the legend.

Here's the command:

twoway
(scatter excel grad evol game, mlabel(abb abb abb) mlabv(pos) ms(i i i))
(scatter actual game, msym(o) c(l) lc(ltblue) msize(small) mc(ltblue))
,
    title("Figure 3: Model Predictive Capacity")
    ytitle("Point Spread")
    note("Note: Points after red line denote out of sample predictions")
    xline(21.5, lp(_) lc(red) )

    yline(0, lc(black))
    legend(span row(1))

;


Any help would be great!!!!

Best,
Ben

_________________________________________________________________
Find a local pizza place, movie theater, and more=85.then map the best rout=
e!
http://maps.live.com/?icid=3Dhmtag1&FORM=3DMGAC01

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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