Description:
Options to the plot3d function are given after the first three arguments, as equations of the form option = value. The following options are supported:
ambientlight=[r,g,b]
This option sets the red, green, and blue intensity of the ambient light for user defined lighting. R, g, and b must be numeric values in the range 0 to 1.
axes=f
This option specifies how the axes are to be drawn, where f is one of BOXED, NORMAL, FRAME, and NONE. The default axis is NONE.
axesfont=l
This option defines the font for the labels on the tick marks of the axes, specified in the same manner as font.
color=c or colour=c
This option defines a color value or function, where c is a predefined color name in ?plot,color or a color function as described in ?plot3d,colorfunc. See those help pages for details.
contours = n
This option specifies the number of contours or a list of contour values, where n is a positive integer or a list of contour values. Default n = 10.
coords=c
This option specifies the coordinate system to be used, where c is one of {cartesian,spherical,cylindrical} The default is Cartesian. For more help, see ?plot3d[coords]
font=l
This option defines the font for text objects in the plot, l is a list [family, style, size], where family is one of TIMES, COURIER, HELVETICA, and SYMBOL. For TIMES, style may be one of ROMAN, BOLD, ITALIC or BOLDITALIC. For HELVETICA and COURIER style may be omitted or select one of BOLD, OBLIQUE, or BOLDOBLIQUE. SYMBOL does not accept a style option. The final value,size, is the point size to be used.
grid=[m,n]
This option specifies the dimensions of a rectangular grid on which the points will be generated (equally spaced).
gridstyle=x
This option specifies rectangular or triangular grid, x is either 'rectangular' or 'triangular'.
labelfont=l
This option defines the font for the labels on the axes of the plot, specified in the same manner as font.
labels=[x,y,z]
This option specifies labels for the axes. The value of x, y, and z must be a string. The default label is no label.
light=[phi,theta,r,g,b]
This option adds a directed light source from the direction phi,theta in spherical coordinates with red green and blue intensities given by r, g and b. R,g, and b must be numeric values in the range 0 to 1.
lightmodel=x
This option chooses a predefined light model to illuminate the plot. Valid light models include 'none', 'light1', 'light2', 'light3', and 'light4'.
linestyle=n
This option defines the dashpattern of lines in the plot. If n is 0 or 1 the lines are solid while other positive integers specify varying patterns or dots and dashes.
numpoints=n
This option specifies the minimum total number of points to be generated (default 625 = 25^2). Plot3d will use a rectangular grid of dimensions ~= sqrt(n).
orientation=[theta,phi]
This option specifies the theta and phi angles of the point in 3-dimensions from which the plot is to be viewed. The default is at a point that is out perpendicular from the screen (negative z axis) so that the entire surface can be seen. The point is described in spherical coordinates where theta and phi are angles in degrees, with default 45 degrees in each case.
projection=r
This option specifies the perspective from which the surface is viewed, where r is a real number between 0 and 1. The 1 denotes orthogonal projection, and the 0 denotes wide-angle perspective rendering. r can also be the one of the names, 'FISHEYE', 'NORMAL', and 'ORTHOGONAL', which correspond to the projection values 0, 0.5, and 1, respectively. The default is projection = ORTHOGONAL.
scaling=s
This option specifies whether the surface should be scaled so that it fits the screen with axes using a relative or absolute scaling, where s is either UNCONSTRAINED or CONSTRAINED The default is relative (UNCONSTRAINED).
shading=s
This option specifies how the surface is coloured, where s is one of XYZ, XY, Z, ZGREYSCALE, ZHUE, NONE. The default is device dependent.
style=s
This specifies how the surface is to be drawn. Some of the options may not be available on some devices, where s is one of POINT, HIDDEN, PATCH, WIREFRAME, CONTOUR, PATCHNOGRID, PATCHCONTOUR, or LINE. The default style is HIDDEN (for hidden line rendering).
symbol=s
This option defines the symbol for points in the plot, s is one of BOX, CROSS, CIRCLE, POINT, and DIAMOND.
thickness=n
This option defines the thickness of lines in the plot, n should be 0, 1, 2, or 3. 0 is the default thickness.
tickmarks=[l,n,m]
This option specifies reasonable numbers no less than l, n and m shoult be marked along the x-axis, y-axis, and z-axis, respectively. Each tick mark value must be either a positive integer or the name 'default' or 'DEFAULT'.
title=t
This option specifies a title for the plot. The value of t must be a string. The default is no title.
titlefont=l
This option defines the font for the title of the plot, specified in the same manner as font.
view=zmin..zmax or [xmin..xmax,ymin..ymax,zmin..zmax]
This option indicates the minimum and maximum coordinates of the surface to be displayed on the screen. The default is the entire surface.
For the axes, style, projection, shading, and scaling options, value may be in either all upper case or all lower case. For example, axes=BOXED is allowed, as well as axes=boxed.
See Also: plot3d[coords], plots[setoptions3d], p