Exp
Exp using New Window
Example 1
Summary: Creates a new window with a graph box that plots an exponential function on the Y-axis, utilizing custom scale properties and pen color.
Code:
Open("data_table.jmp");
tw = New Window( "Exp",
gb = Graph Box(
Xname( "X(Exp Scale)" ),
X Scale( -10, 3 ),
Y Scale( Exp( -10 ), Exp( 3 ) ),
Framesize( 200, 200 ),
Pen Color( "red" );
Y Function( Exp( x ), x );
)
);
gb[axisbox( 2 )] << scale( "custom scale", custom scale name( "Exp" ) ) << Min( -10 ) << Max( 3 );
Code Explanation:
- Open data table.
- Create new window titled "Exp".
- Initialize graph box.
- Set X-axis name.
- Define X-axis scale range.
- Define Y-axis exponential scale range.
- Set graph size.
- Set pen color to red.
- Plot exponential function on Y-axis.
- Customize Y-axis scale properties.
Example 2
Summary: Creates a graph box with an exponential function, customized Y-axis scale, and frame size in JMP.
Code:
dt = Open("data_table.jmp");
tw = New Window( "Exp",
gb = Graph Box(
Xname( "X(Exp Scale)" ),
X Scale( -10, 3 ),
Y Scale( Exp( -10 ), Exp( 3 ) ),
Framesize( 200, 200 ),
Pen Color( "red" );
Y Function( Exp( x ), x );
)
);
gb[axisbox( 2 )] << scale( "custom scale", custom scale name( "Exp" ) ) << Min( -10 ) << Max( 3 );
tw;
Code Explanation:
- Open table.
- Create new window.
- Initialize graph box.
- Set X-axis name.
- Set X-axis scale.
- Set Y-axis scale.
- Set frame size.
- Set pen color.
- Plot exponential function.
- Customize Y-axis scale.