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%3EComment%20cr%C3%A9er%20un%20graphique%20avec%20un%20axe%20des%20abscisses%20secondaire%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-199535%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJe%20veux%20faire%20un%20trac%C3%A9%20de%20deux%20s%C3%A9ries%20de%20donn%C3%A9es%20avec%20des%20axes%20x%20superpos%C3%A9s.%20Comment%20est-ce%20possible%20dans%20JMP%26nbsp%3B%3F%20Cela%20se%20fait%20facilement%20dans%20MS%20Excel%20-%20voir%20ci-dessous%20et%20ci-joint.%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%3ERe%26nbsp%3B%3A%20Comment%20cr%C3%A9er%20un%20graphique%20avec%20un%20axe%20des%20abscisses%20secondaire%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-200779%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJe%20crois%20que%20votre%20%C3%A9valuation%20est%20correcte.Je%20ne%20pense%20pas%20qu'il%20existe%20actuellement%20un%20moyen%20de%20g%C3%A9n%C3%A9rer%20un%20deuxi%C3%A8me%20axe%20X.C'est%20une%20excellente%20id%C3%A9e%2C%20je%20vous%20encourage%20donc%20%C3%A0%20l'ajouter%20%C3%A0%20la%20liste%20de%20souhaits%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%3ERe%26nbsp%3B%3A%20Comment%20cr%C3%A9er%20un%20graphique%20avec%20un%20axe%20des%20abscisses%20secondaire%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-200716%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ENon%2C%20malheureusement%20ce%20n'est%20pas%20ce%20que%20je%20veux.%20Votre%20solution%20me%20donne%20un%20axe%20des%20x%20%22imbriqu%C3%A9%22%2C%20c'est-%C3%A0-dire%20en%20r%C3%A9alit%C3%A9%20deux%20axes%20des%20x%20l'un%20%C3%A0%20c%C3%B4t%C3%A9%20de%20l'autre.%20Je%20veux%20qu'ils%20soient%20empil%C3%A9s%2C%20c'est-%C3%A0-dire%20que%20les%20deux%20%C3%A9chelles%20s'%C3%A9tendent%20de%20gauche%20%C3%A0%20droite%20une%20fois%20et%20que%20chaque%20courbe%20est%20repr%C3%A9sent%C3%A9e%20par%20son%20propre%20axe.%20En%20fait%2C%20je%20demande%20le%20m%C3%AAme%20concept%20qu'un%20axe%20y%20secondaire.%20Il%20semble%20tout%20simplement%20ne%20pas%20exister%20pour%20un%20axe%20des%20x%20dans%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%3ERe%26nbsp%3B%3A%20Comment%20cr%C3%A9er%20un%20graphique%20avec%20un%20axe%20des%20abscisses%20secondaire%26nbsp%3B%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%3ETu%20peux%3CEM%3E%20facilement%3C%2FEM%3E%20faites-le%20dans%20JMP.%20Si%20vous%20vouliez%20le%20faire%20%C3%A0%20l'aide%20d'un%20script%2C%20voici%20un%20exemple%26nbsp%3B%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%3ESi%20vous%20souhaitez%20utiliser%20la%20plateforme%20interactive%2C%20d%C3%A9posez%20simplement%20une%20variable%20sur%20l'axe%20des%20abscisses%20.%20Ensuite%2C%20amenez%20la%20deuxi%C3%A8me%20variable%20et%20placez-la%20sur%20l'axe%20des%20abscisses%2C%20JMP%20vous%20dira%20ce%20qui%20se%20passera%20en%20fonction%20de%20l'endroit%20o%C3%B9%20vous%20la%20d%C3%A9posez.%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