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: -sliceplot- and -connected- problems with legends


From   [email protected]
To   Statalist <[email protected]>
Subject   st: -sliceplot- and -connected- problems with legends
Date   Thu, 16 Aug 2012 12:54:28 +0800

Hello Statalisters-

I am using Nick Cox's -sliceplot- with -connected- and am having
issues controlling the legend.

The general command gives multiple plots, each with a legend:

* begin example 1 *
sysuse sp500.dta

sliceplot connected open high low close date, slices(3)
* end example 1 *

One (sub-optimal solution) is:

* begin example 2 *
sysuse sp500.dta

tw connected open high low close date, legend(off), in 1/83
graph save Graph "Graph1.gph", replace
tw connected open high low close date, legend(off), in 84/166
graph save Graph "Graph2.gph", replace
tw connected open high low close date,, in 167/248
graph save Graph "Graph3.gph", replace
graph combine graph1.gph graph2.gph graph3.gph, col(1)
* end example 2 *

Do any of the graphics gurus have suggestions to produce only a single
legend with three equal-size plots?

thanks-
Andrew Lover

______________________________________________
Epidemiologist
Centre for Infectious Disease Epidemiology Research (CIDER)
Saw Swee Hock School of Public Health
National University of Singapore
*
*   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