cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

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

Some Tricks with Parallel Y Axes

The main idea behind the new parallel Y-axes setting is to generate overlays of plots with several axes on the left, as shown in  New in Graph Builder for JMP 19 


The same principle applies if some axes are on the right of the graph, e.g. for  1 axis on the left and 1 axis right:

Open( "$SAMPLE_DATA/Functional Data/Anodic Bond.jmp" );
Graph Builder(
//	Parallel Axes( "Y Only" ),
	Variables( X( :Order ), Y( :Piston Force ), Y( :Charge, Position( 1 ), Side( "Right" ) ) ),
	Elements( Line( X, Y( 1 ) ), Line( X, Y( 2 ) ) ),
	Local Data Filter(
		Add Filter(
			columns( :Wafer Id ),
			Where( :Wafer Id == 11 )
		)
	)
);

uncomment Parallel Axes( "Y Only" ) and the new functionality will help you to get the right colors:

hogi_0-1762966313855.png

 

more fun: multiple values on the left and right side:

hogi_0-1762965463034.png

 

Graph Builder(
	Parallel Axes( "Y Only" ),
	Variables(
		X( :Order ),
		Y( :Flow ),
		Y( :Voltage, Position( 1 ), Side( "Right" ) ),
		Y( :Piston Force ),
		Y( :Charge, Position( 2 ), Side( "Right" ) )
	),
	Elements( Position( 1, 1 ), Line( X, Y( 1 ) ), Line( X, Y( 2 ) ) ),
	Elements( Position( 1, 2 ), Line( X, Y( 1 ) ), Line( X, Y( 2 ) ) ),
	Local Data Filter(
		Add Filter(
			columns( :Wafer Id ),
			Where( :Wafer Id == 11 ),
			Display( :Wafer Id, N Items( 15 ), Find( Set Text( "" ) ) )
		)
	)
);



remove the Parallel Axes( "Y Only" ) to see how the graph is generated:
note that the different traces have to be in separate graphs at first (e.g. Flow and Piston Force fo the left side)  - 
rather than being merged into the same graph. 

The same logic holds for "all parallel axes on the left":
Do not merge the traces into the same graph yourself; first, they must be in different graphs on top of each other.
As soon as the user activates Parallel Axes , it's JMP who will merge the traces - and split the axes.

Expert mode: Let's see what happens when a user merges 2 traces into the same graph (and adds some other traces on top) ...
After activating Parallel Axes, the 2 merged traces will use the same axis while the other traces get their own axis.

I hope this explanation helps you to understand the general logic.

hogi_1-1762965521387.png


"Y Only"?


so, there will be "X only" and "X and Y" as well ? - but maybe in a next version of JMP ...



side discussion of DACH Users Group Treffen 2025 - Eindrücke und Ressourcen  / JMP19 -- JMP Wishlist 

10 REPLIES 10
hogi
Level XIII

Re: Some Tricks with Parallel Y Axes

If you want to use additional X or Y axes -  and even a combination of parallel X and Y axes 
.... in JMP (!),


.... just create a GraphBox and use the ScaleIDs, introduced in JMP16:

hogi_0-1763676103195.png

 

hogi_1-1763676123700.png

 

thanks @mmarchandFSLR ; )

Recommended Articles