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
alsaqi89
Level I

How i can get max size graph in PowerPoint - PPP ??

 

gb2=
Graph Builder(
Size( 1155, 703 ),
                 Variables(
                  X( :Reference ID ),
                  Y( :OD Inlet DB ),
                  Y( :OD Outlet DB ),
                   Y( :OD Inlet WB ),
                  Y( :OD Outlet WB ),
Overlay( :Test# )
),
Elements( Position( 1, 1 ), Line( X, Y, Legend( 14 ) ) ),
Elements( Position( 1, 2 ), Line( X, Y, Legend( 15 ) ) ),
Elements( Position( 1, 3 ), Line( X, Y, Legend( 16 ) ) ),
Elements( Position( 1, 4 ), Line( X, Y, Legend( 17 ) ) ),
SendToReport(
Dispatch( {}, "graph title", TextEditBox, {Set Text( "OD - DB & WB" )} )
)
);

 

----------------------------

whatever size I put here  //Size( 1155, 703 ),// will not change the size in PPP! .. thank you 


sss.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
julian
Community Manager Community Manager

Re: How i can get max size graph in PowerPoint - PPP ??

Hi @alsaqi89,

Native resolution for most ppt files these days is 1920x1080, so your graph size of 1155x703 would not fill it. I suggest two things: increase the size of the graph, and turn OFF "Fit to Window" to make sure that your graph is not automatically resized before you export to power point. Here is your code with those changes (and I maintained the aspect ratio of your graph):

 

gb2 = Graph Builder(
	Size( 1920, 1169 ),
	Fit to Window( "Off" ),
	Variables(
		X( :Reference ID ),
		Y( :OD Inlet DB ),
		Y( :OD Outlet DB ),
		Y( :OD Inlet WB ),
		Y( :OD Outlet WB ),
		Overlay( :Test# )
	),
	Elements( Position( 1, 1 ), Line( X, Y, Legend( 14 ) ) ),
	Elements( Position( 1, 2 ), Line( X, Y, Legend( 15 ) ) ),
	Elements( Position( 1, 3 ), Line( X, Y, Legend( 16 ) ) ),
	Elements( Position( 1, 4 ), Line( X, Y, Legend( 17 ) ) ),
	SendToReport(
		Dispatch( {}, "graph title", TextEditBox, {Set Text( "OD - DB & WB" )} )
	)
);

 

I hope this helps!

@julian 

View solution in original post

2 REPLIES 2
Highlighted
julian
Community Manager Community Manager

Re: How i can get max size graph in PowerPoint - PPP ??

Hi @alsaqi89,

Native resolution for most ppt files these days is 1920x1080, so your graph size of 1155x703 would not fill it. I suggest two things: increase the size of the graph, and turn OFF "Fit to Window" to make sure that your graph is not automatically resized before you export to power point. Here is your code with those changes (and I maintained the aspect ratio of your graph):

 

gb2 = Graph Builder(
	Size( 1920, 1169 ),
	Fit to Window( "Off" ),
	Variables(
		X( :Reference ID ),
		Y( :OD Inlet DB ),
		Y( :OD Outlet DB ),
		Y( :OD Inlet WB ),
		Y( :OD Outlet WB ),
		Overlay( :Test# )
	),
	Elements( Position( 1, 1 ), Line( X, Y, Legend( 14 ) ) ),
	Elements( Position( 1, 2 ), Line( X, Y, Legend( 15 ) ) ),
	Elements( Position( 1, 3 ), Line( X, Y, Legend( 16 ) ) ),
	Elements( Position( 1, 4 ), Line( X, Y, Legend( 17 ) ) ),
	SendToReport(
		Dispatch( {}, "graph title", TextEditBox, {Set Text( "OD - DB & WB" )} )
	)
);

 

I hope this helps!

@julian 

View solution in original post

Highlighted
alsaqi89
Level I

Re: How i can get max size graph in PowerPoint - PPP ??

thank you! works fine

Article Labels