cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • DownloadSemiconductor Toolkit: Tools to create wafer maps, add wafer geometry to graphics, explore die defects & compare wafers.
  • Discovery Summit 2026: Early User Edition - September 23-24.Register. It's free.
  • See how to design an experiment, explore factor-response relationships, assess tradeoffs, and ID best settings. Register for Sep. 11 Mastering JMP.

Discussions

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

Decimals on y axis on plots

I use a simple JMP add-in that outputs some plots. Is there anything I could do to change the decimal precision of the y-axis without having to manually adjust it each time?

 

How it is now: 

ConvergentWhale_2-1738924133694.png

 



how i would like it :

ConvergentWhale_1-1738924123282.png

 

 

The script that i use is this : 

 
 
					
					gb1 = Expr( 
						Graph Builder(
						Size( 635, 338 ),
						invisible,
						Show Control Panel( 0 ),
						Variables( X( :Time Point Months ), Y( :Result ), Overlay( :Batch ) ),
						Elements(
							Points( X, Y, Legend( 1 ) ),
							Line Of Fit( X, Y, Legend( 2 ), Confidence of Fit( 0 ) )
						),
						Local Data Filter(
							invisible,
							Add Filter(
								columns( :Component, :Batch, :Source Table ),
								Where( :Component == numPar[i] ),
								Where( :Batch == {cyc[k], bat[k]} ),
								Where( :Source Table == dt_name )
							)
						),
						SendToReport(
							Dispatch(
								{},
								"Time Point Months",
								ScaleBox,
								{Min( -0.1 ), Max( maxvalts ), Inc( 2 ), Minor Ticks( 1 )}
							),
							Dispatch(
								{},
								"Result",
								ScaleBox,
								{Min( Eval( minval )), Max( Eval( maxval )), Inc( Eval( (maxval - minval) / 10 ))}
							),
							Dispatch(
								{},
								"graph title",
								TextEditBox,
								{Set Text( numPar[i] || " vs. Time Point " )}
							),
							Dispatch(
								{},
								"Y title",
								TextEditBox,
								{Set Text( yTitleText )}
							)
						  )
						);	
					)
 

 

1 REPLY 1
jthi
Super User

Re: Decimals on y axis on plots

Modify it in the graph builder, get the script from red triangle menu and then make changes based on that

Graph Builder(
	Variables(X(:weight), Y(:height)),
	Elements(Points(X, Y, Legend(3))),
	SendToReport(Dispatch({}, "height", ScaleBox, {Format("Fixed Dec", 12, 3)}))
);
-Jarmo

Recommended Articles