cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
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
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
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 

alsaqi89
Level I

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

thank you! works fine