Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Highlighted
samir
Level IV

How do I get the containers of Graphs

Hi,

I am looking for a way to have access to opened graphs to modify them.

Suppose I have a few graphs (Variability charts) that I made with JMP (all manual work).

I want the box plots to be in black black color instead of red.

How can I get get access to the variability charts to modify them ?

Is there a way to retrieve the containters of the opend graphs ?

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
txnelson
Super User

Re: How do I get the containers of Graphs

You can access the Frame Box() from the window itself.

Window( "Untitled 9 - Variability Chart of Value by Airline" )[framebox( 1 )] << set background color( "gray" );

background.PNG

Jim

View solution in original post

7 REPLIES 7
Highlighted
txnelson
Super User

Re: How do I get the containers of Graphs

Right click on the chart you want to change, and select "Customize".  All of the box plots will then be available for changing.

 

customize.PNG

Jim
Highlighted
samir
Level IV

Re: How do I get the containers of Graphs

Hi,

In fact I know this option (thanks to you, months ago...).

I use it a lot and scripted it.

Usually I do the following steps:

  1. Graphs = dt << Variability Chart( ........)
  2. GraphsReport = Graphs << report;
  3. nbp = GraphsRep[FrameBox( 1 )] << segCount( "Box Plot Seg" );
  4. ...

It works fine. But suppose I make a graph manually (meaning, I miss line 1). Is there a way to retrieve the container of the variability chart and manipulate it ? (similar to what "dt = current data table"  does or any functions that retrieve the container).

Sorry if I was not clear.

Highlighted
txnelson
Super User

Re: How do I get the containers of Graphs

You can access the Frame Box() from the window itself.

Window( "Untitled 9 - Variability Chart of Value by Airline" )[framebox( 1 )] << set background color( "gray" );

background.PNG

Jim

View solution in original post

Highlighted
samir
Level IV

Re: How do I get the containers of Graphs

Great !!! It is close to what I hoped for.

May be one last question: is there another way (or a variant) where I do not need to give the name of the window ? for example "Selected window" or ...because writing by hand the full name is not a good practice :(

Thanks.

Highlighted
txnelson
Super User

Re: How do I get the containers of Graphs

I usually loop through the windows to find the window title(s) that I am interested in, and then act on it.

All of this is documented with examples in the Scripting Index

     Help==>Scripting Index.......search for Window Object

Jim
Highlighted
samir
Level IV

Re: How do I get the containers of Graphs

It works perfect !

I had to look a bit in the scripting index, and try a few things...

It works.

Many thanks !

Highlighted
Pearl
Level II

Re: How do I get the containers of Graphs

Very useful. Is there a way to do the same in a Scatterplot 3?
Article Labels

    There are no labels assigned to this post.