Subscribe Bookmark RSS Feed

how do i access multiple Y by X frames individually to send message for the frame box settings.

jump

Community Trekker

Joined:

Sep 13, 2014

hi,

 

 I have data set where i plot multiple y by x plot  in same file  seperating using BY  option.  I am able to send succesfule message to frame box if i have a single y by x plot in the file. But as soon as i have more than plot in same file , it throws me an error.

 

plot = Bivariate( Y( :Name( "Voltage[V]" ) ), X( :Name( "Time(ns)" ) ), By( :Exp ) );

report = plot << report;
fbx=report[frame box(3)];  /// this only works if i have 1 there with single plot 
fbx << Frame Size(800,400);
fbx << Row Legend("Signal");

3 REPLIES
markbailey

Staff

Joined:

Jun 23, 2011

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

biv = Bivariate( Y( :weight ), X( :height ), By( :sex ) );
bivr = biv << Report;

For( b = 1, b <= N Items( bivr ), b++,
	bivr[b][FrameBox(1)] << Frame Size( 800, 300 );
);
Learn it once, use it forever!
ian_jmp

Staff

Joined:

Jun 23, 2011

With a 'By' variable, 'plot' will be a list, with one item for each level of the variable used:

 

NamesDefaultToHere(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
plot = Bivariate(X(:height), Y(:weight), By(:sex));
for(f=1, f<=NItems(plot), f++,
		Wait(2);
		plotRep = Report(plot[f]);
		plotRep[FrameBox(1)] << FrameSize(800,400);
);
jump

Community Trekker

Joined:

Sep 13, 2014

Thx  ... that worked .  

I have few more questions :

1.  When i looping through Frame objects , how can i get info on which By Value Frame is setitng value for? So i can set up that frame accordingly.

2.  What is the messge to be send for setting title for the Outline Box for both BiVariate and Variability Plot.

 

Also, I have same message question about Variability Plots.

v_plot = v << Variability Chart(Y(:Name("Data")), X(:Name("S")), By(:PS));
frame_count = N items(v_plot);


for(f=1,f <= N items(v_plot), f++,
Wait(2);
sh_report = Report(v_plot[f]);
sh_report[FrameBox(1)] << Frame Size(500,300);  //This does work
sh_report[FrameBox(1)] << Variability Summary Report(1);    /// THis line does not work for 
sh_report[FrameBox(1)] << Connect Cell Means(0);  /// THis line also does not work for me 



);