Re: Explicitly specifying the 3d viewing options (pan, rotate, etc.)
- To: mathgroup at smc.vnet.net
- Subject: [mg121844] Re: Explicitly specifying the 3d viewing options (pan, rotate, etc.)
- From: David Reiss <dbreiss at gmail.com>
- Date: Wed, 5 Oct 2011 03:58:24 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <j6e684$ke8$1@smc.vnet.net>
One simple approach is to create a Dynamic entity that shows the values of the options that you are interested in. Here's an example: DynamicModule[{viewPoint = N@{Pi, Pi/2, 2}}, Column[{ Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}, ViewPoint -> Dynamic[viewPoint]], Dynamic[viewPoint] } ] ] Best, David On Oct 4, 1:40 am, Theo Moore <tsg.mo... at googlemail.com> wrote: > Hi, > > I'm looking for an easy way to specify the 3d viewing options that you > can alter by clicking a 3d plot and dragging your mouse. For example, > plot a graph using: > > Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -2, 2}] > > And then click and rotate it (or click and zoom in/out, etc.). Is > there a way to output the parameters which were used as I manually > rotated it, so that one could duplicate this (now-changed) graphic > from an explicit command?