Beautiful…..I’ll use the solution also
Vin Kane
Principal Quality Engineer
630 798 6404
From: Fred Zhang
[mailto:ieaggie2009@gmail.com]
Sent: Monday, March 09, 2009 1:26
PM
To: Kane, Vincent D.
Cc: jmp-l@lists.biostat.wustl.edu
Subject: Re: [jmp-l] Why I cannot
control the axis setting by JSL?
Just trying the correct object reference: NumberColBox(1) instead of
NumberColBox(2).
skewness = r["Moments"][NumberColBox(1)] << get(10);
Now the value can be extracted by JSL.
Thanks a lot for your attention and comments.
On Mon, Mar 9, 2009 at 2:14 PM, Kane, Vincent D. <vincent.kane@tellabs.com> wrote:
Fred: My only suggestion is to make the the output into
data columns and then go get the Skew. Unfortunaly, I don’t know
the script to make the columns into a data table.
 
Mean 5.69229148
Std Dev 0.98907546
Std Err Mean 0.15638656
Upper 95%
Mean 6.00861315
Lower 95%
Mean 5.3759698
N 40
Sum Wgt
40
Sum 227.691659
Variance
0.97827026
Skewness
-0.2217008
Kurtosis
-0.411026
CV 17.3756994
N
Missing 0
Vin Kane
Principal Quality Engineer
630 798 6404
From: Fred Zhang [mailto:ieaggie2009@gmail.com]
Sent: Monday, March
09, 2009 1:04 PM
To: Kane, Vincent D.
Subject: Re: [jmp-l] Why I cannot
control the axis setting by JSL?
Sorry to
bother you with a graph object reference problem.
It is
very tricky and could not figure it out.
I have
following table "Data.jmp", and try to fit its distribution using
following JSL code:
dt =
CurrentDataTable();
div = Distribution( Stack( 1 ),
Continuous Distribution(Column( :Value ), Horizontal Layout( 1 ),
Vertical( 0 ),
Fit Distribution( Normal(Goodness of Fit( 1
))), More Moments(1) ),
SendToReport( Dispatch( {"Value"}, "Distrib
Outlier Box", FrameBox, Marker Drawing Mode( "Fast" )) )
);
r = div << Report;
skewness
= r["Value"]["Moments"][NumberColBox(2)] << get(10);
But the
code cannot run, because the error message: "Can't subscript Display Box
in access or evaluation of 'Subscript' ,
r["Value"]["Moments"][Number Col Box( 2 )]"
Would you
please advise me how to refer to the "Skewness" value in this display
window?
Appreciate
your kind help and effort.
-------------------------------
Value
5.2185061
6.6833499
5.3100586
4.5776369
3.3874512
4.943848
6.6833499
5.9509278
6.1340333
5.6762697
7.5988771
5.7678227
6.6833499
5.5847171
4.4860839
5.8593752
6.9580079
5.6762697
4.2114259
5.0354005
6.2255863
5.0354005
5.4016116
5.8593752
6.2255863
6.6833499
4.7607425
4.3945314
6.6833499
7.0495609
6.0424807
5.2185061
6.5917973
4.7607425
7.4157716
3.7536623
5.3100586
6.4086918
6.5002443
4.943848
On Tue,
Mar 3, 2009 at 12:19 PM, Fred Zhang <ieaggie2009@gmail.com> wrote:
Your code
WORKS for my problem by achieving the changes I want.
I figured
out that the reason is you use "ScaleBox" in your code, while I used
"AxisBox" in my code.
This is
the only differece to lead your code to work well.
Also,
this is the point I got quite confused because I do not know why you can get
'Scalebox" by
coping
script from the axis dialog window.
When I am
done with this dialog and copied the script to script window, it did not
include such 'ScaleBox" commend.
On Tue,
Mar 3, 2009 at 11:11 AM, Kane, Vincent D. <vincent.kane@tellabs.com>
wrote:
Fred: Now it seems that my code won’t change. The only
way I could get the graph to display $$ was to change the data column format.
I’m not sure why it doesn’t work now.
Vin Kane
Principal Quality Engineer
630 798 6404
From: Fred Zhang [mailto:ieaggie2009@gmail.com]
Sent: Tuesday, March 03, 2009 9:59
AM
To: Kane, Vincent D.
Subject: Re: [jmp-l] Why I cannot
control the axis setting by JSL?
I got
your meaning. And I had tried to do the same by openning up the axis setting
dialog window to change the setting
and then
go to Graph Builder red triangle to copy the script.
However I
always got the following script, and this code did not include the change I
made on x-axis or y-axis.
That's
the really confusing issue I have chased on you.
Sorry for
such long and trivial issus in JMP.
-----------------------------------------------------------------------------
Graph Builder(
Size( 670, 460 ),
Show Control Panel( 0 ),
Automatic Recalc( 0 ),
Variables(
X( :Margin ),
Y(
:NP,
Order By( :Margin, Ascending ),
Size( 117 )
)
),
Elements(
Bar(
X,
Y,
Legend( 10 ),
Bar Style( "Side by side" ),
Summary Statistic( "Mean" )
)
),
SendToReport(
Dispatch( {}, "400", LegendBox, {Set Title( ""
), Position( {-1} )} )
)
)
On Tue,
Mar 3, 2009 at 10:43 AM, Kane, Vincent D. <vincent.kane@tellabs.com>
wrote:
Fred:
Sorry: My memory is going. Right click just below
the x-axis. That should bring up the dialog box as shown below, then you
can change the format and capture the script.
Good luck

Vin Kane
Principal Quality Engineer
630 798 6404
I tried
to right click different spots within the graph,
e.g., by
right clicking within graph and selecting "Edit --> See Tree
Structure",
i got
following: FrameBox(1) -- Segments -- SegBars
By clicking the axis area, got AxisBox(1) or AxisBoxd(2).
Just
wondering how to get your object structure of this graph.
On Tue,
Mar 3, 2009 at 9:51 AM, Kane, Vincent D. <vincent.kane@tellabs.com>
wrote:
Hi Fred: I’m away right now, but I believe you can
right click within the chart itself
Vin Kane
Principal Quality Engineer
630 798 6404
============================================================ The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any reproduction, dissemination or distribution of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. Tellabs ============================================================
============================================================
The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader
of this message is not the intended recipient, or an employee
or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any reproduction,
dissemination or distribution of this communication is strictly
prohibited. If you have received this communication in error,
please notify us immediately by replying to the message and
deleting it from your computer. Thank you. Tellabs
============================================================
|