Statalist


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

Re: st: legend only


From   Nick Winter <[email protected]>
To   [email protected]
Subject   Re: st: legend only
Date   Fri, 29 Aug 2008 13:01:28 -0400

The best I can do is this:

. gr twoway scatter mpg length weight, legend(ring(0) pos(0)) yscale(off) xscale(off)

followed by use of the graphics editor to hide the plot region (Open graphics editor, double-click on "plotregion1" in the Object browser, select the "Advanced" tab, check "hide plotregion".

This could be saved as a .grec file (called, say, legendonly.grec) to be played when graphs of this sort are created later:

. gr twoway scatter mpg length weight, legend(ring(0) pos(0)) yscale(off) xscale(off) play(legendonly)

--Nick Winter



Caleb Southworth wrote:

It's no problem to get the graph only -legend(off)-, but is there a way to suppress the graph and get only the legend?

Caleb Southworth
Associate Professor
University of Oregon Sociology
*
* 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/
--
--------------------------------------------------------------
Nicholas Winter                                 434.924.6994 t
Assistant Professor                             434.924.3359 f
Department of Politics                  [email protected] e
University of Virginia          faculty.virginia.edu/nwinter w
PO Box 400787, 100 Cabell Hall
Charlottesville, VA 22904
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index