jmp-l
[Top] [All Lists]

Re: Why I cannot control the axis setting by JSL?

To: jmp-l@lists.biostat.wustl.edu
Subject: Re: Why I cannot control the axis setting by JSL?
From: Fred Zhang <ieaggie2009@gmail.com>
Date: Tue, 3 Mar 2009 09:02:58 -0500
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=pt6w9viyqWPGMUo74ZFXVA3Tubn2vAcNQ980dzbfpbg=; b=UmktsZxmtnTwAwlbymitffKF8Ybppv9V0ef3WOj/Y7RShTh6ndaML1/C/nXRvraJCE VHjMmiz5BhBXynDKH9cO41gBC6MsdBb3qD4VVY+XuYHE+Ar8MzZPHmG20LRW03xeQIGU 9hffGgLN0PzOOumG8Lj3jGX2EC1IC2dPzmkaM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=gyTGf5ptqV6AS6oq5ztgx9cIOQGKChKYlbxyh78BRq8827mqv+Z3hKD+LZ5eMInlbW Q4kvetFw4mwmYCN1M1Lrt/gER2h8VC0zKMirBeJyWFJaeU497yCCrbpX8ZLRIh94MH1P vCZ4R4PU6HZkHqq5uuDvLvdv84BBz3a8UqQUQ=
In-reply-to: <000f01c99b8a$e09086d0$a1b19470$@net>
References: <25e89e790903021047q51f90863me3299bea27e94585@mail.gmail.com> <000f01c99b8a$e09086d0$a1b19470$@net>
Thank you, Mike.
 
Actually I tried to first format the columns in data table, then used Graph Builder script to do plotting.
It did not appear as the way I expected to see.
So I turned to manually control the axis setting in JSL, and could not find the referenc to the X-axis
and Y-axis.
Because, for the legendbox, when I manually did change interactively in Graph Builder and I can view
the script which shows the reference is "400'.
For axis, I could not view their reference number, which may explain why my JSL did not run without
the proper numeric reference to x-axisbox and y-axisbox.
 
Fred

On Mon, Mar 2, 2009 at 6:01 PM, Michael Benson <mbenson@one.net> wrote:

One quick way to get close to what you want: Format the Table Column in JMP as Currency 14.0. Then run your code.

 

From: jmp-l-owner@lists.biostat.wustl.edu [mailto:jmp-l-owner@lists.biostat.wustl.edu] On Behalf Of Fred Zhang
Sent: Monday, March 02, 2009 1:47 PM


To: jmp-l@lists.biostat.wustl.edu
Subject: [jmp-l] Why I cannot control the axis setting by JSL?

 

Hi, all

 

I am using Graph Builder to generate a plot.

Attached is the data file, and following is the code.

 

I need to change the x-axis format to be USD Currency 14.0,

and also try to show the major grid of y-axis.

However, the code did not work as the way I expect, that is, both AxisBox do not change at all.

 

Please advise me what's wrong with my code.

 

Thank you so much.

Fred

------------------------------------------------------

dt = data table("Graph Example Data");

biv = Graph Builder(Size(670, 460), Show Control Panel( 0 ),
 Variables( X( :Margin, Format("Currency", "USD", 14,0)), Y( :NP, Size(94))),
 Elements(Bar(X, Y, Legend( 10 ), Bar Style( "Side by side" ),
   Summary Statistic( "Mean" ))),
 SendToReport(Dispatch( {}, "400", LegendBox, {Set Title( "" ), Position( {-1} )}),
     Dispatch({}, AxisBox(2), {Scale("Linear"), Format("Best"), Min(-0.5), Max(9.5), Inc(1), Minor Ticks(0), Show Major Grid(1),
  Show Major Ticks(1), Show Minor Grid(0), Show Minor Ticks(1), Show Labels(1), Rotated Labels(0)}),
 Dispatch({}, AxisBox(1), {Scale("Linear"), Format("Currency", "USD", 14, 0), Min(-3802.28136882129), Max(1996197.71863118), Inc(500000), Minor Ticks(1), Show Major Grid(0), Show Major Ticks(1), Show Minor Grid(0), Show Minor Ticks(1), Show Labels(1), Rotated Labels(0)})
 )
);

 


<Prev in Thread] Current Thread [Next in Thread>