Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: Moving legend closer to graph using grc1leg


From   Benedikt Achatz <[email protected]>
To   [email protected]
Subject   st: Moving legend closer to graph using grc1leg
Date   Wed, 4 Jul 2012 11:50:11 +0200

I have been trying this out for some time now, but cannot find a
solution. I have the following code:

 grc1leg /*
*/ `subfigure_path'time_line_outcomes_group1.gph /*
*/ `subfigure_path'time_line_outcomes_group2.gph /*
*/ `subfigure_path'time_line_outcomes_group3.gph /*
*/ `subfigure_path'time_line_outcomes_group4.gph /*
*/, rows (1) ysize (8) xsize(12) iscale(1) graphregion(margin(l=0 r=0
t=0 b=0)) /*
*/ saving(`subfigure_path'timelines_outcome_`grouperlabel'.gph,replace)

 grc1leg /*
*/ `subfigure_path'time_line_local_vars_group1.gph /*
*/ `subfigure_path'time_line_local_vars_group2.gph /*
*/ `subfigure_path'time_line_local_vars_group3.gph /*
*/ `subfigure_path'time_line_local_vars_group4.gph /*
*/, rows (1) ysize (8) xsize(12) iscale(1) graphregion(margin(l=0 r=0
t=0 b=0)) /*
*/ saving(`subfigure_path'timelines_local_vars_`grouperlabel'.gph,replace)

grc1leg /*
*/ `subfigure_path'time_line_global_vars_group1.gph /*
*/ `subfigure_path'time_line_global_vars_group2.gph /*
*/ `subfigure_path'time_line_global_vars_group3.gph /*
*/ `subfigure_path'time_line_global_vars_group4.gph /*
*/, rows (1) ysize (8) xsize(12) iscale(1) graphregion(margin(l=0 r=0
t=0 b=0)) /*
*/ saving(`subfigure_path'timelines_global_vars_`grouperlabel'.gph,replace)

 graph combine /*

*/ `subfigure_path'timelines_outcome_`grouperlabel'.gph /*
*/ `subfigure_path'timelines_local_vars_`grouperlabel'.gph /*
*/ `subfigure_path'timelines_global_vars_`grouperlabel'.gph /*
*/, cols(1) rows(3)  ysize(8) xsize(12) iscale(.8)
graphregion(margin(l=0 r=0 t=0 b=0))
* iscale(1) rows(2) ycommon
sleep 2000
graph export `figure_path'timelines_3x4_`grouperlabel'.`figformat', replace
!epstopdf `figure_path'timelines_3x4_`grouperlabel'.`figformat'

Which combines 12 graphics into a 3*4 matrix, and one legend for each
line of graphs.
Since space is scarce with this, I want the legend to be very close to
the graph, however, I have not found an option that can move the
legend closer. Is there any possibility to do so?
Thanks!
*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index