jmp-l
[Top] [All Lists]

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

To: "jmp-l@lists.biostat.wustl.edu" <jmp-l@lists.biostat.wustl.edu>
Subject: Re: Why I cannot control the axis setting by JSL?
From: "Kane, Vincent D." <vincent.kane@tellabs.com>
Date: Tue, 3 Mar 2009 09:43:35 -0600
Accept-language: en-US
Acceptlanguage: en-US
In-reply-to: <25e89e790903030659r55251fe3n6ba125f04b13eca3@mail.gmail.com>
References: <25e89e790903021047q51f90863me3299bea27e94585@mail.gmail.com> <DB26A5BFE61C5747B75182C6827AA9FCFE4C0F@EX-NAP.tellabs-west.tellabsinc.net> <25e89e790903030621x7e4e99d8w3c57c4d71d6d60d4@mail.gmail.com> <DB26A5BFE61C5747B75182C6827AA9FC01001A19@EX-NAP.tellabs-west.tellabsinc.net> <25e89e790903030659r55251fe3n6ba125f04b13eca3@mail.gmail.com>
Thread-index: AcmcELesi+tzFm8sSjS4po38iIT47gABbrLA
Thread-topic: [jmp-l] Why I cannot control the axis setting by JSL?

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


From: jmp-l-owner@lists.biostat.wustl.edu [mailto:jmp-l-owner@lists.biostat.wustl.edu] On Behalf Of Fred Zhang
Sent: Tuesday, March 03, 2009 9:00 AM
To: jmp-l@lists.biostat.wustl.edu
Subject: Re: [jmp-l] Why I cannot control the axis setting by JSL?

 

Vincent

 

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.

 

Anyway, thanks.

Fred

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


From: jmp-l-owner@lists.biostat.wustl.edu [mailto:jmp-l-owner@lists.biostat.wustl.edu] On Behalf Of Fred Zhang
Sent: Tuesday, March 03, 2009 8:21 AM

Subject: Re: [jmp-l] Why I cannot control the axis setting by JSL?

 

Hi, Vincent

 

Thank you very much.

I noticed that you use "Scalebox" rather than "AxisBox" in my code.

When the Graph shows up, I right click on either y-axis or x-axis to see the tree structure, which only includes "AxisBox(1)"

and "AxisBox(2)".

So I am a bit confused how to get the right grpah object name?

Or how can you obtain "ScaleBox" from the graph?

 

Fred

On Mon, Mar 2, 2009 at 4:11 PM, Kane, Vincent D. <vincent.kane@tellabs.com> wrote:

Fred: I copied this from the script window that was generated after I manually changed the X axis format.

 

Graph Builder(

      Size( 670, 460 ),

      Show Control Panel( 0 ),

      Variables( X( :Name( " Margin" ) ), Y( :NP, Size( 126 ) ) ),

      Elements(

            Bar(

                  X,

                  Y,

                  Legend( 10 ),

                  Bar Style( "Side by side" ),

                  Summary Statistic( "Mean" )

            )

      ),

      SendToReport(

            Dispatch( {}, "100", ScaleBox, {Format( "Currency", "USD", 10, 2 )} ),

            Dispatch( {}, "400", LegendBox, {Set Title( "" ), Position( {-1} )} )

      )

);

 

Vin Kane

Principal Quality Engineer

630 798 6404


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 12: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)})
 )
);

 

============================================================
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
============================================================

 

============================================================
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
============================================================
<Prev in Thread] Current Thread [Next in Thread>