cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
tova
Level III

using right y axis on graph builder and color coding

Hi,

 

I am building a graph with graph builder.  I have 4 variables that I am showing on the y-axis, two on the left axis and two on the right axis.  I am using points, and would like the points to be color coded based on another variable (which happens to be color).  The color coding is working only for the variables using the left axis.  Is there a way I can color the right axis variables?

 

Thanks!

2 REPLIES 2
tova
Level III

Re: using right y axis on graph builder and color coding

I ended up solving my problem by using overlay, defining markers and colors, and then hiding whatever i wanted from the key.

 

Add Properties to Table( {New Script( "PmW Norm To Single Sub Frame AVG[Um] & 3 more vs. Nozzle ID 3", Graph Builder( Size( 1564, 941 ), Show Control Panel( 0 ), Variables( X( :Nozzle ID ), Y( :Name( "PmW Norm To Single Sub Frame AVG[Um]" ), Side( "Right" ) ), Y( :Name( "Line Width [Um]" ), Position( 1 ), Side( "Right" ) ), Y( :TIJ resistance, Position( 1 ) ), Y( :Pump resistance, Position( 1 ) ), Group X( :Pen, N View Levels( 1 ) ), Group X( :Die, N View Levels( 1 ), First View Level( 2 ) ), Group Y( :Bar, N View Levels( 1 ) ), Overlay( :Color ), Color( :Color ) ), Elements( Points( X, Y( 3 ), Y( 4 ), Legend( 20 ) ), Points( X, Y( 1 ), Y( 2 ), Legend( 21 ) ) ), SendToReport( Dispatch( {}, "400", ScaleBox, {Legend Model( 20, Properties( 0, {Line Color( 10 ), Marker( "Dot" )} ), Properties( 1, {Line Color( 0 ), Marker( "Dot" )} ), Properties( 2, {Line Color( 14 ), Marker( "Dot" )} ), Properties( 3, {Line Color( 9 ), Marker( "Dot" )} ), Properties( 4, {Line Color( 10 ), Marker( "Plus" )} ), Properties( 5, {Line Color( 10 ), Marker( "Dot" )} ), Properties( 7, {Marker( "Dot" )} ), Properties( 8, {Line Color( 14 ), Marker( "Plus" )} ), Properties( 9, {Line Color( 14 ), Marker( "Dot" )} ), Properties( 10, {Line Color( 9 ), Marker( "Plus" )} ), Properties( 11, {Line Color( 9 ), Marker( "Dot" )} ) ), Legend Model( 21, Properties( 4, {Line Color( 10 ), Marker( "X" )} ), Properties( 5, {Line Color( 10 ), Marker( "Y" )} ), Properties( 6, {Line Color( 0 ), Marker( "X" )} ), Properties( 7, {Line Color( 0 ), Marker( "Y" )} ), Properties( 8, {Line Color( 14 ), Marker( "X" )} ), Properties( 9, {Line Color( 14 ), Marker( "Y" )} ), Properties( 10, {Line Color( 9 )} ), Properties( 11, {Line Color( 9 ), Marker( "Y" )} ) )} ), Dispatch( {}, "400", LegendBox, {Legend Position( {20, [0, 1, 2, 3, 4, 5, -1, -1, -1, -1, -1, -1], 21, [-3, -3, -3, -3, 6, 7, -1, -1, -1, -1, -1, -1]} ), Position( {0, 1, 2, 3, 4, 5, -1, -1, -1, -1, -1, -1, -3, -3, -3, -3, 6, 7, -1, -1, -1, -1, -1, -1} )} ) ) ) )} )

tova
Level III

Re: using right y axis on graph builder and color coding


@tova wrote:

Hi,

 

I am building a graph with graph builder.  I have 4 variables that I am showing on the y-axis, two on the left axis and two on the right axis.  I am using points, and would like the points to be color coded based on another variable (which happens to be color).  The color coding is working only for the variables using the left axis.  Is there a way I can color the right axis variables?

 

Thanks!



I ended up solving my problem by using overlay, defining markers and colors, and then hiding whatever i wanted from the key.

 

Add Properties to Table(
	{New Script(
		"PmW Norm To Single Sub Frame AVG[Um] & 3 more vs. Nozzle ID 3",
		Graph Builder(
			Size( 1564, 941 ),
			Show Control Panel( 0 ),
			Variables(
				X( :Nozzle ID ),
				Y(
					:Name( "PmW Norm To Single Sub Frame AVG[Um]" ),
					Side( "Right" )
				),
				Y(
					:Name( "Line Width [Um]" ),
					Position( 1 ),
					Side( "Right" )
				),
				Y( :TIJ resistance, Position( 1 ) ),
				Y( :Pump resistance, Position( 1 ) ),
				Group X( :Pen, N View Levels( 1 ) ),
				Group X( :Die, N View Levels( 1 ), First View Level( 2 ) ),
				Group Y( :Bar, N View Levels( 1 ) ),
				Overlay( :Color ),
				Color( :Color )
			),
			Elements(
				Points( X, Y( 3 ), Y( 4 ), Legend( 20 ) ),
				Points( X, Y( 1 ), Y( 2 ), Legend( 21 ) )
			),
			SendToReport(
				Dispatch(
					{},
					"400",
					ScaleBox,
					{Legend Model(
						20,
						Properties( 0, {Line Color( 10 ), Marker( "Dot" )} ),
						Properties( 1, {Line Color( 0 ), Marker( "Dot" )} ),
						Properties( 2, {Line Color( 14 ), Marker( "Dot" )} ),
						Properties( 3, {Line Color( 9 ), Marker( "Dot" )} ),
						Properties( 4, {Line Color( 10 ), Marker( "Plus" )} ),
						Properties( 5, {Line Color( 10 ), Marker( "Dot" )} ),
						Properties( 7, {Marker( "Dot" )} ),
						Properties( 8, {Line Color( 14 ), Marker( "Plus" )} ),
						Properties( 9, {Line Color( 14 ), Marker( "Dot" )} ),
						Properties( 10, {Line Color( 9 ), Marker( "Plus" )} ),
						Properties( 11, {Line Color( 9 ), Marker( "Dot" )} )
					), Legend Model(
						21,
						Properties( 4, {Line Color( 10 ), Marker( "X" )} ),
						Properties( 5, {Line Color( 10 ), Marker( "Y" )} ),
						Properties( 6, {Line Color( 0 ), Marker( "X" )} ),
						Properties( 7, {Line Color( 0 ), Marker( "Y" )} ),
						Properties( 8, {Line Color( 14 ), Marker( "X" )} ),
						Properties( 9, {Line Color( 14 ), Marker( "Y" )} ),
						Properties( 10, {Line Color( 9 )} ),
						Properties( 11, {Line Color( 9 ), Marker( "Y" )} )
					)}
				),
				Dispatch(
					{},
					"400",
					LegendBox,
					{Legend Position(
						{20, [0, 1, 2, 3, 4, 5, -1, -1, -1, -1, -1, -1], 21, [
						-3, -3, -3, -3, 6, 7, -1, -1, -1, -1, -1, -1]}
					), Position(
						{0, 1, 2, 3, 4, 5, -1, -1, -1, -1, -1, -1, -3, -3, -3,
						-3, 6, 7, -1, -1, -1, -1, -1, -1}
					)}
				)
			)
		)
	)}
)