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%3E%C2%BFC%C3%B3mo%20hago%20un%20gr%C3%A1fico%20con%20el%20eje%20x%20secundario%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-199535%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EQuiero%20hacer%20un%20gr%C3%A1fico%20de%20dos%20series%20de%20datos%20con%20ejes%20x%20superpuestos.%20%C2%BFC%C3%B3mo%20es%20esto%20posible%20en%20JMP%3F%20Se%20hace%20f%C3%A1cilmente%20en%20MS%20Excel%20-%20ver%20m%C3%A1s%20abajo%20y%20adjunto.%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%3A%20%C2%BFC%C3%B3mo%20hago%20un%20gr%C3%A1fico%20con%20el%20eje%20x%20secundario%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-200779%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECreo%20que%20tu%20apreciaci%C3%B3n%20es%20correcta.No%20creo%20que%20actualmente%20haya%20una%20forma%20de%20generar%20un%20segundo%20eje%20X.Es%20una%20gran%20idea%2C%20as%C3%AD%20que%20te%20animo%20a%20que%20la%20a%C3%B1adas%20a%20la%20Wish%20List%20de%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%3A%20%C2%BFC%C3%B3mo%20hago%20un%20gr%C3%A1fico%20con%20el%20eje%20x%20secundario%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%20desafortunadamente%20esto%20no%20es%20lo%20que%20quiero.%20Su%20soluci%C3%B3n%20me%20da%20un%20eje%20x%20%22anidado%22%2C%20es%20decir%2C%20en%20realidad%20dos%20ejes%20x%20uno%20al%20lado%20del%20otro.%20Los%20quiero%20apilados%2C%20es%20decir%2C%20ambas%20escalas%20se%20extienden%20de%20izquierda%20a%20derecha%20una%20vez%20y%20cada%20curva%20est%C3%A1%20representada%20por%20su%20propio%20eje.%20En%20realidad%2C%20pido%20el%20mismo%20concepto%20que%20un%20eje%20y%20secundario.%20Simplemente%20parece%20no%20existir%20para%20un%20eje%20x%20en%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%3A%20%C2%BFC%C3%B3mo%20hago%20un%20gr%C3%A1fico%20con%20el%20eje%20x%20secundario%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%3EPuede%3CEM%3E%20f%C3%A1cilmente%3C%2FEM%3E%20hacer%20eso%20en%20JMP.%20Si%20quisieras%20hacer%20eso%20usando%20un%20script%2C%20aqu%C3%AD%20hay%20un%20ejemplo%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%20desea%20utilizar%20la%20plataforma%20interactiva%2C%20simplemente%20suelte%20una%20variable%20en%20el%20eje%20x.%20Luego%20traiga%20la%20segunda%20variable%20y%20col%C3%B3quela%20sobre%20el%20eje%20x%2C%20JMP%20le%20dir%C3%A1%20qu%C3%A9%20suceder%C3%A1%20dependiendo%20de%20d%C3%B3nde%20la%20suelte.%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