Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #5408

Re: Explicitly specifying the 3d viewing options (pan, rotate, etc.)

From Peter Breitfeld <phbrf@t-online.de>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Explicitly specifying the 3d viewing options (pan, rotate, etc.)
Date 2011-10-05 08:16 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j6h3oi$75p$1@smc.vnet.net> (permalink)
References <j6e684$ke8$1@smc.vnet.net>

Show all headers | View raw


Theo Moore 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?
>

You may use the following function:

getViews[pic_]:=
Flatten[Union[Extract[pic,Position[pic,#]]&/@
  {ViewPoint->_, ViewCenter->_, ViewVertical->_,
   ViewAngle->_, ViewVector->_, ViewRange->_}]];

To apply it, do the following:
Drag, rotate, ... your pic until it looks like you want.

Then enter getViews[] in a new cell, paste the pic between the brackets
and evaluate.

-- 
_________________________________________________________________
Peter Breitfeld, Bad Saulgau, Germany -- http://www.pBreitfeld.de

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Explicitly specifying the 3d viewing options (pan, rotate, etc.) Theo Moore <tsg.moore@googlemail.com> - 2011-10-04 05:40 +0000
  Re: Explicitly specifying the 3d viewing options (pan, rotate, etc.) Simon <simonjtyler@gmail.com> - 2011-10-05 07:59 +0000
  Re: Explicitly specifying the 3d viewing options (pan, rotate, etc.) David Reiss <dbreiss@gmail.com> - 2011-10-05 08:00 +0000
  Re: Explicitly specifying the 3d viewing options (pan, rotate, etc.) "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-10-05 08:10 +0000
  Re: Explicitly specifying the 3d viewing options (pan, rotate, etc.) Peter Breitfeld <phbrf@t-online.de> - 2011-10-05 08:16 +0000
  Re: Explicitly specifying the 3d viewing options (pan, rotate, etc.) Chris Young <cy56@comcast.net> - 2011-11-28 10:56 +0000
  Re: Explicitly specifying the 3d viewing options (pan, rotate, etc.) Chris Young <cy56@comcast.net> - 2011-11-28 10:56 +0000

csiph-web