Yes...it is a one off solution, not a production solution. In my
case I often iterate to a final graph so I typically run the basic
graph more than once anyway. But if you were running many graphs this
might not be a great solution (though it would also work).
Best,
Alan
On Sat, Dec 19, 2009 at 4:15 PM, Martin Weiss <[email protected]> wrote:
>
> <>
>
>
> But your solution would require Robert to run the code twice, once to see
> that Stata lets the y-axis end at .08, and then to update the code with the
> coordinate 0.84. Worse, the next graph will require a different one...
>
>
>
> HTH
> Martin
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]] Im Auftrag von Alan Neustadtl
> Gesendet: Samstag, 19. Dezember 2009 22:12
> An: [email protected]
> Betreff: Re: st: legend for reference lines
>
> How about using the -text- option like in my example below:
>
> twoway kdensity mpg , ///
> xline(16.1,lp(solid)) ///
> xline(22.22,lp(dash)) ///
> xline(28.33,lp(shortdash)) ///
> text(.084 16.10 "foo") ///
> text(.084 22.22 "bar") ///
> text(.084 28.33 "blup")
>
> Best,
> Alan
> *
> * 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/
>
*
* 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/