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

# Re: st:how to really combine two 3-dimensional graphs (using one x,y,z axis system)

 From Nick Cox <[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 15:10:30 +0000

```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/
```

• Follow-Ups:
• References: