Display3DBox
Associated Constructors
Graph 3D Box
Syntax: y = Graph 3D Box()
Description: Sends display commands to the 3D plot.
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
Item Messages
Add Ellipsoid
Syntax: obj << Add Ellipsoid( 4x4 matrix )obj << Add Ellipsoid(3x3 cov,3x1 means)obj << Add Ellipsoid(3x3 corr,3x1 means,3x1 std dev)
Description: Draws an ellipsoid on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D(
Add Ellipsoid(
[1 0.42632 0.85183, 0.42632 1 0.34418, 0.85183 0.34418 1],
[6.55099 2.96919 5.5066],
[0.57829 0.29087 0.53668]
)
);
Add Markers
Syntax: obj << Add Markers( [ nx1 X matrix ], [ nx1 Y matrix ], [ nx1 Z matrix ] )
Description: Draws n markers on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Add Markers( [2 3 4], [5 6 7], [1 8 9] ) );
Add Vector
Syntax: obj << Add Vector( [ 3xn from matrix ], [ 3xn to matrix ], FromCap( CutOff|Sphere|Point|Feather ), ToCap( CutOff|Sphere|Point|Feather ), Facets( Triangle|Square|Round ), Shaft Color( color ), Shaft Thickness( number ), From Thickness( number ), To Thickness( number ), From Color( number ), To Color( number ) ) )
Description: Draws a vector or arrow on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Add Vector( [4.5 2 1], [7.5 4 6], FromCap( "Feather" ), ToCap( "Point" ) ) );
Get Axes
Syntax: obj << Get Axes
Description: Returns the state of displaying the axes on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
s = obj << Frame3D( Get Axes );
Show( s );
Get Box
Syntax: obj << Get Box
Description: Returns the state of displaying the box frame on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
s = obj << Frame3D( Get Box );
Show( s );
Get Grab Handles
Syntax: obj << Get Grab Handles
Description: Returns the state of displaying the grab handles on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
s = obj << Frame3D( Get Box );
Show( s );
Get Graph Size
Syntax: obj << Get Graph Size
Description: Returns the size of the graph.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
s = obj << Frame3D( Get Graph Size );
Show( s );
Get Grids
Syntax: obj << Get Grids
Description: Returns the state of displaying the grids on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
s = obj << Frame3D( Get Grids );
Show( s );
Get Hide Lights Border
Syntax: obj << Get Hide Lights Border
Description: Returns the state of the lights border around the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
state = obj << Frame3D( Get Hide Lights Border );
Show( state );
Get Line Scale
Syntax: obj << Get Line Scale
Description: Returns the line width for the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
w = obj << Frame3D( Get Line Scale );
Show( w );
Get Marker Quality
Syntax: obj << Get Marker Quality
Description: Returns the marker characteristics such as shape and shade for the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
q = obj << Frame3D( Get Marker Quality );
Show( q );
Get Marker Scale
Syntax: obj << Get Marker Scale
Description: Returns the marker size for the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
s = obj << Frame3D( Get Marker Scale );
Show( s );
Get Marker Transparency
Syntax: obj << Get Marker Transparency
Description: Returns the marker transparency for the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
t = obj << Frame3D( Get Marker Transparency );
Show( t );
Get Rotation
Syntax: obj << Get Rotation
Description: Returns the current rotation for the frame.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
r = obj << Frame3D( Get Rotation() );
Show( r );
Get Text Scale
Syntax: obj << Get Text Scale
Description: Returns the text size for the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
s = obj << Frame3D( Get Text Scale );
Show( s );
Get View Ortho
Syntax: obj << Get View Ortho
Description: Returns the state of the orthographic view for the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
o = obj << Frame3D( Get View Ortho );
Show( o );
Get View Perspective
Syntax: obj << Get View Perspective
Description: Returns the view perspective for the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
p = obj << Frame3D( Get View Perspective );
Show( p );
Get View Zoom
Syntax: obj << Get View Zoom
Description: Returns the current zoom for the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
z = obj << Frame3D( Get View Zoom );
Show( z );
Get Wall Color
Syntax: obj << Get Wall Color
Description: Returns the wall color for the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
c = obj << Frame3D( Get Wall Color );
Show( c );
Get Walls
Syntax: obj << Get Walls
Description: Returns the state of displaying the walls on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
s = obj << Frame3D( Get Walls );
Show( s );
Get X Axis Color
Syntax: obj << Get X Axis Color
Description: Returns the x axis color for the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
c = obj << Frame3D( Get X Axis Color );
Show( c );
Get X Axis Label
Syntax: obj << Get X Axis Label
Description: Returns the label for the X Axis on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
label = obj << Frame3D( Get X Axis Label );
Show( label );
Get Y Axis Color
Syntax: obj << Get Y Axis Color
Description: Returns the y axis color for the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
c = obj << Frame3D( Get Y Axis Color );
Show( c );
Get Y Axis Label
Syntax: obj << Get Y Axis Label
Description: Returns the label for the Y Axis on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
label = obj << Frame3D( Get Y Axis Label );
Show( label );
Get Z Axis Color
Syntax: obj << Get Z Axis Color
Description: Returns the z axis color for the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
c = obj << Frame3D( Get Z Axis Color );
Show( c );
Get Z Axis Label
Syntax: obj << Get Z Axis Label
Description: Returns the label for the Z Axis on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
label = obj << Frame3D( Get Z Axis Label );
Show( label );
Set Axes
Syntax: obj << Set Axes( state=0|1 )
Description: Shows or hides the x, y, and z axes on the plot. On by default.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Axes( 1 ) );
Set Box
Syntax: obj << Set Box( state=0|1 )
Description: Shows or hides the box frame on the plot. On by default.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Box( 1 ) );
Set Graph Size
Syntax: obj << Set Graph Size( x, y )
Description: Sets the size of the graph.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Graph Size( 700, 800 ) );
Set Grids
Syntax: obj << Set Grids( state=0|1 )
Description: Shows or hides the grids on the plot. On by default.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Grids( 1 ) );
Set Hide Lights Border
Syntax: obj << Set Hide Lights Border( state=0|1 )
Description: Hides or displays the lights border around the plot. On by default.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Hide Lights Border( 0 ) );
Set Line Scale
Syntax: obj << Set Line Scale( number )
Description: Sets the line width for the grid on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Line Scale( 6.5 ) );
Set Marker Quality
Syntax: obj << Set Marker Quality( number )
Description: Sets the marker characteristics such as shape and shade for the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Marker Scale( 3 ), Set Marker Quality( 0.2625 ) );
Set Marker Scale
Syntax: obj << Set Marker Scale( number )
Description: Sets the marker size for the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Marker Scale( 3.5 ) );
Set Marker Transparency
Syntax: obj << Set Marker Transparency( fraction )
Description: Sets the marker transparency for the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Marker Transparency( 0.4125 ) );
Set Oscillation
Syntax: obj << Set Oscillation( X, Y, Z, duration )
Description: Sets oscillation rate on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Rotation( -60, -3, 35 ), Set Oscillation( -54, 0, 38, 100 ) );
Set Rotation
Syntax: obj << Set Rotation( X, Y, Z )
Description: Rotates the frame to the specified coordinates.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Rotation( -60, -3, 35 ) );
Set Spin
Syntax: obj << Set Spin( dx, dy, sx, sy )
Description: Spins the graph on a specified axis. The values dx and dy are a delta motion of the mouse from the point, (sx, sy).
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Spin( .01, .01, 0, 0 ) );
Set Text Scale
Syntax: obj << Set Text Scale( number )
Description: Sets the text size for the axis text on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Text Scale( 1.4 ) );
Set View Ortho
Syntax: obj << Set View Ortho( state=0|1 )
Description: Displays the plot orthographically or linearly.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set View Ortho( 1 ) );
Set View Perspective
Syntax: obj << Set View Perspective( fraction )
Description: Sets the view perspective on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set View Perspective( 0.275 ) );
Set View Zoom
Syntax: obj << Set View Zoom( number )
Description: Sets the zoom on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set View Zoom( 0.5 ) );
Wait( 2 );
obj << Frame3D( Set View Zoom( 2 ) );
Set Wall Color
Syntax: obj << Set Wall Color( number )
Description: Sets the wall color on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Wall Color( -16775543 ) );
Set Walls
Syntax: obj << Set Walls( state=0|1 )
Description: Shows or hides the walls on the plot. On by default.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Walls( 1 ) );
Set X Axis Color
Syntax: obj << Set X Axis Color( color )
Description: Sets the x axis color on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set X Axis Color( 5 ) );
Set X Axis Label
Syntax: obj << Set X Axis Label( string )
Description: Sets the label for the X Axis on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set X Axis Label( "Iris Sepal Length" ) );
Set Y Axis Color
Syntax: obj << Set Y Axis Color( color )
Description: Sets the y axis color on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Y Axis Color( 11 ) );
Set Y Axis Label
Syntax: obj << Set Y Axis Label( string )
Description: Sets the label for the Y Axis on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Y Axis Label( "Iris Petal Length" ) );
Set Z Axis Color
Syntax: obj << Set Z Axis Color( color )
Description: Sets the z axis color on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Z Axis Color( "Green" ) );
Set Z Axis Label
Syntax: obj << Set Z Axis Label( string )
Description: Sets the label for the Z Axis on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Z Axis Label( "Iris Sepal Width" ) );
XAxis
Syntax: obj << XAxis( Min( number ), Max( number ), Inc( number ), Format( ) )
Description: Sets the values for the X Axis on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( XAxis( Min( 3 ), Max( 10 ) ) );
YAxis
Syntax: obj << YAxis( Min( number ), Max( number ), Inc( number ), Format( ) )
Description: Sets the values for the Y Axis on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( YAxis( Min( 1 ), Max( 10 ), Inc( 0.5 ) ) );
Z Axis
Syntax: obj << Z Axis( Min( number ), Max( number ), Inc( number ), Format( ) )
Description: Sets the values for the Z Axis on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( ZAxis( Min( 1 ), Max( 5 ), Inc( 0.25 ) ) );
get light active
Syntax: obj << get light active( light number )
Description: Returns the specified light activation shining on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
p = obj << Frame3D( Set Hide Lights Border( 0 ), Get Light Active( 2 ) );
Show( p );
get light color
Syntax: obj << get light color( light number )
Description: Returns the specified light color shining on the plot as a list {red, green, blue}.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
c = obj << Frame3D( Set Hide Lights Border( 0 ), Get Light Color( 1 ) );
Show( c );
get light position
Syntax: obj << get light position( light number )
Description: Returns the specified light position shining on the plot as a list {x, y, z}.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
p = obj << Frame3D( Set Hide Lights Border( 0 ), Get Light Position( 2 ) );
Show( p );
set light active
Syntax: obj << set light active( light number, state=0|1 )
Description: Turns on the specified light shining on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Hide Lights Border( 0 ), Set Light Active( 4, 1 ) );
set light color
Syntax: obj << set light color( light number, red value, green value, blue value )
Description: Sets the color of the light shining on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Hide Lights Border( 0 ), Set Light Color( 2, 240, 50, 70 ) );
set light position
Syntax: obj << set light position( light number, X, Y, Z )
Description: Sets the light position shining on the plot.
JMP Version Added: 16
dt = Open( "$SAMPLE_DATA/Iris.jmp" );
obj = Scatterplot 3D( Y( :Sepal length, :Sepal width, :Petal length, :Petal width ) );
obj << Frame3D( Set Hide Lights Border( 0 ), Set Light Position( 2, -1.5833, 10, 0 ) );