< >
Yes, I had run into the same problem in the past, but found a workaround.
It appears that the xsize() and ysize() region_options are unrecognized by
-grc1leg- due to the use of -graph combine, nodraw `name'- and a subsequent
-graph draw, `name'- in the .ado.
The workaround I used was to save the combined graph generated with -grc1leg-
using the -,name()- option, then to redraw it with the -graph display- command,
including the desired xsize() ysize() settings there.
.sysuse auto, clear
.scatter price mpg, name(g1, replace)
.scatter weight length, name(g2, replace)
.grc1leg g1 g2, name(g3, replace)
.graph display g3, xsize(5) ysize(10)
- Gary
Chris Witte wrote:
I've ran into a problem using -grc1leg-, which puts a single legend on a combined graph. I am unable to use the -xsize- and -ysize- region options, which are available when using -graph combine-. here's an example:
sysuse auto, clear
scatter price mpg, name(g1)
scatter weight length, name(g2)
graph combine "C:\_DATA\g1" "C:\_DATA\g2", ysize(10)
grc1leg "C:\_DATA\g1" "C:\_DATA\g2", ysize(10)
can anyone fix this?
*
* 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/