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]
Re: st:how to really combine two 3-dimensional graphs (using one x,y,z axis system)
From
Steven Samuels <[email protected]>
To
[email protected]
Subject
Re: st:how to really combine two 3-dimensional graphs (using one x,y,z axis system)
Date
Thu, 6 Jan 2011 12:23:52 -0500
By "on top of", I meant "one graph above the other". But I agree that
the poster needs other tools.
Steve
On Jan 6, 2011, at 11:51 AM, Nick Cox wrote:
Not so.
-col()- just controls the juxtaposition (side by side). There is no
superimposition (graphs of top of each other).
Nick
On Thu, Jan 6, 2011 at 4:09 PM, Steven Samuels <[email protected]>
wrote:
Amanda wrote:
"I tried -gr combine-, but the output is simply put the two graphs
side by
side".
That's just the default output. The "col(1)" of -graph combine-
will put
the graphs on top of one another. That and the "nowire" option of -
surface-
should get you close to what you want, as long as the z ranges do not
overlap.
(On my system. Stata 11, OS X 10.5.8, PB G4, the -surface- and -
saving-
options don't work, so I can't test this.)
Steve
On Jan 6, 2011, at 10:10 AM, Nick Cox wrote:
The reference here is to -surface- from SSC. Please remember to
explain where user-written programs you refer come from; this is a
very longstanding request on this list.
-graph combine- is just doing precisely what it claims, juxtaposing
graphs. All you can do with -graph combine- is put graphs side by
side. There is absolutely no scope for it to do what you want. Nor is
it surprising that there is no option controlling z-axes; Stata has no
concept of a z-axis and any appearance to the contrary is just a
programmer-produced illusion.
What you want I think requires non-trivial Stata programming or
recourse to other software. Good official support for 3-D graphics has
been on many users' wishlists for some time, including mine. but as of
now I don't see a way to do what you want in Stata. (Whether the graph
could be drawn to work well is a separate issue.)
Nick
On Thu, Jan 6, 2011 at 2:49 PM, Amanda Fu <[email protected]> wrote:
I created two 3-dimensional graphs using -surface- for two groups. I
aim to do now is to put the two in one graph. I tried -gr combine-,
but the output is simply put the two graphs side by side. What I want
to get is in one graph, the two groups 3-D graph of both the groups
are drawn (they share one x-axis, one y-axis, and one z-axis). I also
tried -gr combine, xcommon ycommon-. The results are the same. And
gr
combine does not allow the option of -zcommon- .
Is there someone who could give me some suggestions on this? Thank
you!
*
* 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/