Re: Re: Graphics3D axes
- To: mathgroup at smc.vnet.net
- Subject: [mg66679] Re: [mg66655] Re: Graphics3D axes
- From: Selwyn Hollis <sh2.7183 at earthlink.net>
- Date: Sat, 27 May 2006 03:50:55 -0400 (EDT)
- References: <e53lad$3sh$1@smc.vnet.net> <200605260817.EAA01734@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
On May 26, 2006, at 4:17 AM, Jean-Marc Gulliet wrote: > Laura wrote: >> This must be a common query but I haven't been able to find the >> answer: >> >> For plotting 3D graphics (plot3D or Graphics3D), how do you get the >> standard axes: (1,0,0), (0,1,0), (0,0,1)? I've tried all sorts of >> options >> from AxesEdges to changing Views. Basically, I'd like my 3D plots >> to appear >> with the axes set at the origin. >> >> z >> | >> (0,0,0) |______ y >> / >> / >> x >> >> Thank you for any pointers. >> >> > Hi Laura, > > First, select a suitable view point by setting the option ViewPoint > (also accessible via the menu Input => "3D ViewPoint Selector...", > shift+ctrl+V on MS Windows). > > Then, tweak the values of the option AxesEdge. Finally, remove the > frame > box if you wish. > > For example: > > Plot3D[Sin[x]^2*Cos[y^2], {x, 0, Pi}, {y, 0, 2*Pi}, > AxesEdge -> {{-1, -1}, {-1, -1}, {-1, -1}}, Boxed -> False, > ViewPoint -> {3.11, 1.171, 1.225}, ImageSize -> 400]; > > Best regards, > Jean-Marc > Just an additional tip. If you want this to be the default view -- so you don't have to specify the options every time -- use SetOptions as follows: SetOptions[{Plot3D, ParametricPlot3D, Graphics3D}, AxesEdge -> {{-1, -1}, {-1, -1}, {-1, -1}}, Boxed -> False, ViewPoint -> {2.4, 1.3, 2.} ] (That viewpoint is analogous to Mathematica's default {1.3, -2.4, 2}.) By the way, over the years I've *really* come to prefer Mathematica's way of doing things. It is much more natural. I wonder if writers of calculus books settled on the standard of having the first octant in front because of some supposed convenience for sketching common "textbook" surfaces by hand. -- Selwyn Hollis
- References:
- Re: Graphics3D axes
- From: Jean-Marc Gulliet <jeanmarc.gulliet@gmail.com>
- Re: Graphics3D axes