Re: Axes in 3D?
- To: mathgroup at smc.vnet.net
- Subject: [mg98767] Re: [mg98746] Axes in 3D?
- From: "David Park" <djmpark at comcast.net>
- Date: Sat, 18 Apr 2009 03:39:15 -0400 (EDT)
- References: <152495.1239957651800.JavaMail.root@n11>
The Presentations package has the commands: DrawingWidths3D, DrawArrow3DAxes, DrawLabeled3DAxes and TickLine3D. DrawingWidths3D[{primitives}] will return the widths. center point and bounds of the bounding box that contains the list of primitives. DrawArrow3DAxes[location,size,headsize:0.35,colors:{Blue,Green,Orange}] will draw an orthogonal triad of 3D arrows at location, each arrow being of equal length size. The arrows will point in the x, y, and z directions. DrawLabeled3DAxes[location, size, fontsize, labels:{"x", "y ","z "}, labelpositions:{1.15,1.15,1.15}, orientations:{{1,0},{0,1},{1,0}}] will draw an orthogonal set of lines in the x, y and z directions at location, each line being of length 2 * size. The lines will be labeled with Text3D at the positive ends. labelpositions specifies the position of the center of the label in terms of size measured from location. The orientations give the orientation of the plane of each label according to the Text3D tutorial example. The fontsize is in terms of plot coordinates TickLine3D[xtickline] uses an XTickLine specification to produce a corresponding tick line for Graphics3D. The resulting tick line can be rotated, translated and scaled so as to be positioned anywhere in 3-dimensional space. One problem with "axes" plots versus "frame" plots (in 2D and 3D) is that the axes and ticks (if you are using ticks) are often interfering with the objects you are drawing. If you wish to send me an example I will try a plot for you. This does not do everything automatically, although one could probably write a routine that would do much of it. David Park djmpark at comcast.net http://home.comcast.net/~djmpark/ From: Heather Hulett [mailto:hulett.heat at uwlax.edu] I'm using Mathematica 7.0 and would like to put the axes at the origin in a 3D graph instead of showing them on a bounding box. I have the 3D-Axes.nb (found on http://library.wolfram.com/infocenter/MathSource/528/ ) but would like a source that can determine the ranges automatically. This seems like an obvious option for any 3D plot--especially since version 7.0 seems to be very receptive to making things look just like students would expect to see them. Thanks! HHulett