cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
%3CLINGO-SUB%20id%3D%22lingo-sub-199535%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ECome%20faccio%20a%20creare%20un%20grafico%20con%20l'asse%20x%20secondario%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-199535%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EVoglio%20creare%20un%20grafico%20di%20due%20serie%20di%20dati%20con%20assi%20x%20sovrapposti.%20Come%20%C3%A8%20possibile%20in%20JMP%3F%20%C3%88%20facilmente%20eseguibile%20in%20MS%20Excel%20-%20vedi%20sotto%20e%20in%20allegato.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Plot.JPG%22%20style%3D%22width%3A%20558px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Plot.JPG%22%20style%3D%22width%3A%20558px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Plot.JPG%22%20style%3D%22width%3A%20558px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F17069i36EAF9687A226DE0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Plot.JPG%22%20alt%3D%22Plot.JPG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-200779%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20Come%20faccio%20a%20fare%20un%20grafico%20con%20l'asse%20x%20secondario%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-200779%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECredo%20che%20la%20tua%20valutazione%20sia%20corretta.Non%20credo%20che%20al%20momento%20ci%20sia%20un%20modo%20per%20generare%20un%20secondo%20asse%20X.%C3%88%20un'ottima%20idea%2C%20quindi%20ti%20incoraggio%20ad%20aggiungerla%20alla%20lista%20dei%20desideri%20di%20JMP.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-200716%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20Come%20faccio%20a%20fare%20un%20grafico%20con%20l'asse%20x%20secondario%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-200716%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ENo%2C%20sfortunatamente%20non%20%C3%A8%20quello%20che%20voglio.%20La%20tua%20soluzione%20mi%20d%C3%A0%20un%20asse%20x%20%22nidificato%22%2C%20cio%C3%A8%20in%20realt%C3%A0%20due%20assi%20x%20uno%20accanto%20all'altro.%20Li%20voglio%20impilati%2C%20cio%C3%A8%20entrambe%20le%20scale%20si%20estendono%20da%20sinistra%20a%20destra%20una%20volta%20e%20ogni%20curva%20%C3%A8%20rappresentata%20dal%20proprio%20asse.%20In%20realt%C3%A0%2C%20chiedo%20lo%20stesso%20concetto%20di%20un%20asse%20y%20secondario.%20Sembra%20proprio%20che%20non%20esista%20per%20un%20asse%20x%20in%20JMP.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-200569%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERi%3A%20Come%20faccio%20a%20fare%20un%20grafico%20con%20l'asse%20x%20secondario%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-200569%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9068%22%20target%3D%22_blank%22%3E%40Morten%3C%2FA%3E%20%2C%3C%2FP%3E%3CP%3EPuoi%3CEM%3E%20facilmente%3C%2FEM%3E%20farlo%20in%20JMP.%20Se%20vuoi%20farlo%20usando%20uno%20script%2C%20ecco%20un%20esempio%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt%20%3D%20Open(%20%22%24SAMPLE_DATA%2FBig%20Class.jmp%22%20)%3B%0Agb1%20%3D%20dt%20%26lt%3B%26lt%3B%20Graph%20Builder(Variables(%20X(%20%3Asex%20)%2C%20X(%20%3Aage%2C%20Position(%201%20)%20)%2C%20Y(%20%3Aheight%20)%20)%2C%0A%20%20%20%20%20Elements(%20Points(%20X(%201%20)%2C%20X(%202%20)%2C%20Y%2C%20Legend(%2024%20)%20)%20)%0A%20%20%20%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3ESe%20desideri%20utilizzare%20la%20piattaforma%20interattiva%2C%20rilascia%20semplicemente%20una%20variabile%20sull'asse%20x%20.%20Quindi%20porta%20la%20seconda%20variabile%20e%20posizionala%20sull'asse%20x%2C%20JMP%20ti%20dir%C3%A0%20cosa%20accadr%C3%A0%20a%20seconda%20di%20dove%20la%20lasci%20cadere%20.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
Morten
Level II

How do I make a graph with secondary x-axis?

I want to make a plot of two data series with overlayed x-axes. How is this possible in JMP? It is easily done in MS Excel - see below and attached.

Plot.JPG

 

 

4 REPLIES 4
uday_guntupalli
Level VIII

Re: How do I make a graph with secondary x-axis?

@Morten ,

       You can easily do that in JMP. If you wanted to do that using a script, here is an example: 

 

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb1 = dt << Graph Builder(Variables( X( :sex ), X( :age, Position( 1 ) ), Y( :height ) ),
			  Elements( Points( X( 1 ), X( 2 ), Y, Legend( 24 ) ) )
			 );

     If you wanted to use the interactive platform, just drop a variable on the x-axis . Then bring the second variable and hover it on the x-axis, JMP will tell you what will happen depending on where you drop it . 

 

 

Best
Uday
Morten
Level II

Re: How do I make a graph with secondary x-axis?

No, unfortunately this is not what I want. Your solution gives me a "nested" x-axis, i.e. in reality two x-axes next to each other. I want them stacked, i.e. both scales span left to right once and each curve is represented by its own axis. Actually, I ask for the very same concept as a secondary y-axis. It just seems not to exist for an x-axis in JMP.

txnelson
Super User

Re: How do I make a graph with secondary x-axis?

I believe your assessment is correct.  I do not think there currently is a way to generate a second X Axis.  It is a great idea, so I encourage you to add it to the JMP Wish List.

Jim
HydroBug
Level II

Re: How do I make a graph with secondary x-axis?

A bit late (4 years), I had a similar problem, mine was different time steps but the same scale, and it can be done. If you are using graph builder, drag both variables that you want into the x-axis:

 

2023-08-24 (4).png

Then, right click the data points on the graph where you want to change the x-axis to display the following menu, just select the variable that you want to use for the x-axis.  In my case, I had a daily and a weekly time scale.

2023-08-24 (2).png

 

For different scales you can merge the axes.

Recommended Articles