cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
kaushik_pushpen
Level III

How to put variable title name in the list of graph?

Hello all,

I am not able to find problem why it is not showing title name according to the variable "a1". Please find my script below.

dt1 = open("F:\pushpendra\jmp\HIPO_RintCalculation.jmp");

dt2 = open("F:\pushpendra\jmp\wafer.jmp");

for(i=1,i<=nrow(dt2),i++,

  a1= Eval(column(dt2, 1));

  biv=dt1<<Bivariate(

  Y( :Site_Value ),

  X( :Name( "Length(um)" ) ),

  Fit Line( {Line Color( "Red" )} ),

  where( :Wafer == a1 ),

  );

  se2=(biv<<report)<<outlinebox<<Set Title("wafer No=" || a1);

);

Please find the problem and help me. Thanks in advance.

4 REPLIES 4
ian_jmp
Level X

Re: How to put variable title name in the list of graph?

There are a few possibilities, and you didn't quote an error message. The code below may give you some idea as to how to fix it:

dt = Open("$SAMPLE_DATA/Big Class.jmp");

biv = dt << Bivariate(X(:height), Y(:weight));

for(i=1, i<=5, i++,

Report(biv)[OutlineBox(1)] << SetTitle("Wafer "||Char(i));

Wait(1);

);

pmroz
Super User

Re: How to put variable title name in the list of graph?

Here's a brute force way using eval(parse()).  Note that I'm setting the outlinebox title directly in the code for the bivariate platform.

dt = Open("$SAMPLE_DATA/Big Class.jmp");

sex_list = {"F", "M"};

for (i = 1, i <= nitems(sex_list), i++,

      one_sex = sex_list[i];

      biv_expr = evalinsert("\[

      dt << Bivariate(

            Y( :height ),

            X( :weight ),

            Where( :sex == "^one_sex^" ),

            SendToReport( Dispatch( {},

                        "Bivariate Fit of height By weight",

                        OutlineBox,

                        {Set Title( "Sex ^one_sex^" )}

                  )

            )

      );]\");

      eval(parse(biv_expr));

);

kaushik_pushpen
Level III

Re: How to put variable title name in the list of graph?

Thank you PMroz​ for the suggestion.

kaushik_pushpen
Level III

Re: How to put variable title name in the list of graph?

Thank you very much Ian@JMP​. It is working fine now.

Recommended Articles