cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

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

Transparency for Overlay Group?

Hi,

 

I want to reduce the visibility of a specific Overlay Group in Graph Builder. This can be done via  the Transparency option:

hogi_0-1744258683385.png

hogi_3-1744262425190.png

 

 

In my next example, I use the column height  to specify the color of the data points.

I can adjust the Transparency via the Female legend entry - this transparency doesn't have any  effect. And I can adjust Transparency via the right click menu of the gradient - but this will affect both Overlay groups ...
How can I adjust the transparency of the Female Overlay group?

 

hogi_2-1744262376277.png

 

 

 

Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
dt << Graph Builder(
	Variables(
		X( :age ),
		Y( :weight ),
		Overlay( :sex, Overlay Encoding( "Style" ) ),
		Color( :height )
	),
	Elements( Points( X, Y, Legend( 10 ) ) ),
	SendToReport(
		Dispatch( {}, "400", ScaleBox,
			{Legend Model(
				10,
				Properties(
					1,
					{Marker( "FilledCircle" ), Marker Size( 6 ), Transparency( 0.5 )},
					Item ID( "F", 1 )
				),
				Properties(
					2,
					{Marker( "FilledSquare" ), Marker Size( 6 )},
					Item ID( "M", 1 )
				)
			)}
		)
	)
);

 

1 ACCEPTED SOLUTION

Accepted Solutions
hogi
Level XIII

Re: Transparency for Overlay Group?

nice workaround from JMP support: TS-00198153 
use row states, they don't interfere with the possibility to control the appearance for different overlay groups.

 

hogi_0-1744313219918.png

 



dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
// Color or mark by column
Data Table( "Big Class Families" ) << Color or Mark by Column(
	:height,
	Color Theme( "Spectral" ),
	Marker( 0 ),
	Continuous Scale( 1 )
);
dt << Graph Builder(
	Size( 437, 453 ),
	Show Control Panel( 0 ),
	Variables( X( :age ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 6 ) ) ),
	SendToReport(
		Dispatch( {}, "400", ScaleBox,
			{Legend Model(
				6,
				Properties(
					0,
					{Line Color( 0 ), Marker( "FilledCircle" ), Transparency( 0.2 )},
					Item ID( "F", 1 )
				),
				Properties(
					1,
					{Line Color( 0 ), Marker( "FilledSquare" )},
					Item ID( "M", 1 )
				)
			)}
		),
		Dispatch( {}, "Graph Builder", FrameBox,
			{Marker Size( 5 ), Marker Drawing Mode( "Normal" ),
			Marker Selection Mode( "Selected Outlined" )}
		)
	)
);

View solution in original post

1 REPLY 1
hogi
Level XIII

Re: Transparency for Overlay Group?

nice workaround from JMP support: TS-00198153 
use row states, they don't interfere with the possibility to control the appearance for different overlay groups.

 

hogi_0-1744313219918.png

 



dt = Open( "$SAMPLE_DATA/Big Class Families.jmp" );
// Color or mark by column
Data Table( "Big Class Families" ) << Color or Mark by Column(
	:height,
	Color Theme( "Spectral" ),
	Marker( 0 ),
	Continuous Scale( 1 )
);
dt << Graph Builder(
	Size( 437, 453 ),
	Show Control Panel( 0 ),
	Variables( X( :age ), Y( :weight ), Overlay( :sex ) ),
	Elements( Points( X, Y, Legend( 6 ) ) ),
	SendToReport(
		Dispatch( {}, "400", ScaleBox,
			{Legend Model(
				6,
				Properties(
					0,
					{Line Color( 0 ), Marker( "FilledCircle" ), Transparency( 0.2 )},
					Item ID( "F", 1 )
				),
				Properties(
					1,
					{Line Color( 0 ), Marker( "FilledSquare" )},
					Item ID( "M", 1 )
				)
			)}
		),
		Dispatch( {}, "Graph Builder", FrameBox,
			{Marker Size( 5 ), Marker Drawing Mode( "Normal" ),
			Marker Selection Mode( "Selected Outlined" )}
		)
	)
);

Recommended Articles