cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Instantly extract effect sizes, F-ratios, and FDR-adjusted p-values from your models with the Calculate Effects Sizes extension, available now in the JMP Marketplace!
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • See how to use the JMP Marketplace – Free tools to expand JMP capabilities. Register. July 10, 2 pm US Eastern Time.

Discussions

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

How can I output the graph in the same window as the button?

When I write the command to output the graph in the button, it actually outputs in a new window. What should I do to output the graph in the same window (as shown in the figure below)?
BabyDoragon_0-1725531492325.png

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
nw2 = New Window( "New window",
	outputG = Button Box( "Output Graph",
		Outline Box( "Graph Output", 
		Bivariate( y( :weight ), x( :height ) ); )
	)
);
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: How can I output the graph in the same window as the button?

The objects created when the button box is clicked need to be appended back to the window.

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
nw2 = New Window( "New window",
	outputG = Button Box( "Output Graph",
		ob = Outline Box( "Graph Output",
			Bivariate( y( :weight ), x( :height ) )
		);
		nw2 << append( ob );
	)
);
Jim

View solution in original post

2 REPLIES 2
jthi
Super User

Re: How can I output the graph in the same window as the button?

You could collect them into some display element

Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");
nw2 = New Window("New window",
	outputG = Button Box("Output Graph",
		vlb << Append(Outline Box("Graph Output", Bivariate(y(:weight), x(:height))))
	),
	vlb = V List Box()
);
-Jarmo
txnelson
Super User

Re: How can I output the graph in the same window as the button?

The objects created when the button box is clicked need to be appended back to the window.

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
nw2 = New Window( "New window",
	outputG = Button Box( "Output Graph",
		ob = Outline Box( "Graph Output",
			Bivariate( y( :weight ), x( :height ) )
		);
		nw2 << append( ob );
	)
);
Jim

Recommended Articles