cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
Thierry_S
Super User

JMP > Graph Builder > Dynamic Marker Size > Fixed Scaling when using Local Filter?

Hi JMP Community,

 

Is it possible to define the Size variable in Graph Builder so that it keeps the same scale across graphs when switching between subset of the data based on a Local Filter?

Details:

When assigning a variable to the Size on a plot and using a Local Filter to generate interactively different plots, each time I change the subset of data being plotted, the scale of the Marker Size changes based on the Local Maximum and Minimum of the Size variable for the given subset, leading to Marker size looking similar across plots even though the Size variable varies greatly between data subsets.

 

I found a crude workaround by setting dummy data points with the lowest and highest values the Size variable at the edge of the plot and rescaling the plot to hide this dummy points, but this is far from ideal so you inputs would be welcome. 

Thanks for your help.

Best,

TS 

Thierry R. Sornasse
1 ACCEPTED SOLUTION

Accepted Solutions
ih
Super User (Alumni) ih
Super User (Alumni)

Re: JMP > Graph Builder > Dynamic Marker Size > Fixed Scaling when using Local Filter?

If you right click on the size in the legend a dialog opens where the min and max can be specified.  These appear to stay put when the local data filter is modified.

 

     ih_0-1630343881842.png

     ih_1-1630343901213.png

 

Example:

View more...
Names default to here(1);

dt = Open( "$Sample_data/iris.jmp");

dt << Graph Builder(
	Size( 531, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :Sepal length ), Y( :Sepal width ), Size( :Petal width ) ),
	Elements( Points( X, Y, Legend( 50 ) ) ),
	Local Data Filter(
		Add Filter(
			columns( :Species ),
			Where( :Species == {"setosa", "versicolor", "virginica"} )
		)
	),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				50,
				Properties(
					0,
					{Marker Scale( {Min( 0 ), Max( 2.5 )} )},
					Item ID( "Petal width", 1 )
				)
			)}
		)
	)
);

 

 

View solution in original post

3 REPLIES 3
ih
Super User (Alumni) ih
Super User (Alumni)

Re: JMP > Graph Builder > Dynamic Marker Size > Fixed Scaling when using Local Filter?

If you right click on the size in the legend a dialog opens where the min and max can be specified.  These appear to stay put when the local data filter is modified.

 

     ih_0-1630343881842.png

     ih_1-1630343901213.png

 

Example:

View more...
Names default to here(1);

dt = Open( "$Sample_data/iris.jmp");

dt << Graph Builder(
	Size( 531, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :Sepal length ), Y( :Sepal width ), Size( :Petal width ) ),
	Elements( Points( X, Y, Legend( 50 ) ) ),
	Local Data Filter(
		Add Filter(
			columns( :Species ),
			Where( :Species == {"setosa", "versicolor", "virginica"} )
		)
	),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				50,
				Properties(
					0,
					{Marker Scale( {Min( 0 ), Max( 2.5 )} )},
					Item ID( "Petal width", 1 )
				)
			)}
		)
	)
);

 

 

Thierry_S
Super User

Re: JMP > Graph Builder > Dynamic Marker Size > Fixed Scaling when using Local Filter?

Hi,

This option does not seem to be available in the older version of JMP (14.1): I'll need to upgrade.

Thanks.

Best,

TS

Thierry R. Sornasse
ih
Super User (Alumni) ih
Super User (Alumni)

Re: JMP > Graph Builder > Dynamic Marker Size > Fixed Scaling when using Local Filter?

You're right, I just checked and in 15.2.1 the option was not there, so it looks like you would need 16.0.