cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP Pro extension simulates Bayesian Optimization runs. Prediction formulas stand in for experimental results. Run simulations and compare results. Download and use the extension.

Discussions

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

SendToByGroup & ScatterPlot 3D Automation

Hi There, 

I have some surface roughness data and I am trying to automate my analysis a bit, I've used the workflow builder to get most of the way there, but on the report snapshot step I am a little bit stuck. I want to make one 3D scatter plot per File Name, all with the same axis and coloring settings, but the File Name will not always be the same, what's the easiest way to make that a variable? Thanks!

Data Table( "AFM_Output_XYZ.jmp" ) << Scatterplot 3D(
	SendToByGroup( {:File Name == "Sample0.txt"} ),
	Y( :x, :y, :z ),
	Coloring( :z ),
	SendToByGroup( {:File Name == "Sample1.txt"}, Legend( 7 ) ),
	SendToByGroup( {:File Name == "Sample2.txt"}, Legend( 9 ) ),
	SendToByGroup( {:File Name == "Sample3.txt"}, Legend( 11 ) ),
	SendToByGroup( {:File Name == "Sample4.txt"}, Legend( 13 ) ),
	SendToByGroup( {:File Name == "Sample5.txt"}, Legend( 15 ) ),
	
	Frame3D( Set Grab Handles( 0 ) ),
	By( :File Name ),
	Group Options( Automatic Recalc( 0 ) ),
	SendToByGroup(
		{:File Name == "Sample1.txt"},
		SendToReport(
			Dispatch( {}, "1", ScaleBox,
				{Min( 10500 ), Max( 0 ), Inc( 1000 ), Minor Ticks( 1 )}
			),
			Dispatch( {}, "2", ScaleBox,
				{Min( 10500 ), Max( 0 ), Inc( 1000 ), Minor Ticks( 1 )}
			),
			Dispatch( {}, "100", ScaleBox,
				{Legend Model(
					7,
					Type Properties(
						0,
						"Gradient",
						{gradient(
							{Color Theme( "Spectral" ), Scale Values( [0 50 100] )}
						)}
					),
					Properties(
						0,
						{gradient(
							{Color Theme( "Spectral" ), Scale Values( [0 50 100] )}
						)},
						Item ID( "z", 1 )
					)
				)}
			)
		)
	)
)
0 REPLIES 0

Recommended Articles