Subscribe Bookmark RSS Feed

Save Picture issue (whitespace)

agonzales2021

Contributor

Joined:

Jun 23, 2017

 

fin = New Window("Final_Report",
V List Box(
H LIst box(z_plot,bivorig),
comp_plot
)
);
 
 
fin << Save PIcture(location||"PICTURE.png");

 

Every Time I try to save a picture I then get a horribly long picture that is 4336 by 38495 which is mostly white space. Please help. I just want an image of the final window I made >.> THis is highly annoying

1 REPLY
Byron_JMP

Staff

Joined:

Apr 26, 2012

 

 

maybe try something like this.

 

note: the save picture function includes the complete file name and an argument with the file type "Figure1 << save picture(path||"Dashboard2.jpg",jpg);

 

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

//define what a report looks like but don't make it, use expressions
graph1=expr(dt1<<Bivariate(Y( :weight ),X( :height )));
graph2=expr(dt1<<Distribution(Continuous Distribution(Column( :weight )),	Nominal Distribution( Column( :age ) ),SendToReport(
		Dispatch( {}, "Quantiles", OutlineBox, {Close( 1 )} ),
		Dispatch( {}, "Summary Statistics", OutlineBox, {Close( 1 )} ),
		Dispatch( {}, "Frequencies", OutlineBox, {Close( 1 )} )
	)
));

//make a window with a report it in
Figure1=new window("This is a window",hlistbox("h box1",graph1, graph2));

//save the window as a jpg
Figure1 << save picture(path||"Dashboard2.jpg",jpg);