Hi @billi ,
Sure, so in the example that I posted, I used the Big Class.jmp file, which you can find in the Help > Sample Index menu.
The first thing you'll want to do is change your preferences so the graph spacing is zero, not just unchecked (default).
This time, I actually set the graph spacing to 0. Last time, I just unchecked the box in preferences (leaves vertical line as before), but if you actually set it to 0, then there is no vertical line separating the graphs. To get to preferences, go File > Preferences, Select Platforms and then scroll down to select Graph Builder:
![SDF1_10-1710166434392.png SDF1_10-1710166434392.png](https://community.jmp.com/t5/image/serverpage/image-id/62073i78FC3DA88196D011/image-size/medium?v=v2&px=400)
Make sure the checkbox for Graph Spacing is marked, and then set the spacing to 0.
Go to Graph Builder, then you can click and drag your columns to the respective axes. Here it is with just one column for each axis:
![SDF1_0-1710165869813.png SDF1_0-1710165869813.png](https://community.jmp.com/t5/image/serverpage/image-id/62063i2F4F39812853DD41/image-size/medium?v=v2&px=400)
If you click and drag your same column for the x-axis and then move it off to the right of the original axis, like so:
![SDF1_1-1710165925822.png SDF1_1-1710165925822.png](https://community.jmp.com/t5/image/serverpage/image-id/62064iB808F2F108D4ED0A/image-size/medium?v=v2&px=400)
you'll get a graph with the same curve on two axes. Double click the left axis and you'll get the axis setting window, this is the default:
![SDF1_2-1710165997904.png SDF1_2-1710165997904.png](https://community.jmp.com/t5/image/serverpage/image-id/62065iFC77AD111B6DE2F6/image-size/medium?v=v2&px=400)
Chang ethe Maximum value for the x-axis to whatever your new x2 value is, in this case I'm choosing 60, and change the Increment value to whatever you want. In this case 1, then click OK:
![SDF1_3-1710166065038.png SDF1_3-1710166065038.png](https://community.jmp.com/t5/image/serverpage/image-id/62066i67D45FE0FBA3F949/image-size/medium?v=v2&px=400)
and your graph will now look like this:
![SDF1_4-1710166098205.png SDF1_4-1710166098205.png](https://community.jmp.com/t5/image/serverpage/image-id/62067i679722EE2DD1AB7A/image-size/medium?v=v2&px=400)
You'll do something similar for the right x-axis, but change the Minimum to the same value as what you had before for the maximum on the other axis, in this case 60. I'm leaving the max default to what it says, and changing the Increment to 10. Click OK.
![SDF1_5-1710166187887.png SDF1_5-1710166187887.png](https://community.jmp.com/t5/image/serverpage/image-id/62068i8F362CD8CF9009BB/image-size/medium?v=v2&px=400)
Your graph should now look like this:
![SDF1_6-1710166206567.png SDF1_6-1710166206567.png](https://community.jmp.com/t5/image/serverpage/image-id/62069i792FD9CF0D9682F8/image-size/medium?v=v2&px=400)
To change the color of the second graph, right click the marker icon (do the same for the line icon), and select the correct color so that it's the same as the left-hand graph:
![SDF1_7-1710166269718.png SDF1_7-1710166269718.png](https://community.jmp.com/t5/image/serverpage/image-id/62070i2CE405634A642526/image-size/medium?v=v2&px=400)
Your graph should now look like this:
![SDF1_9-1710166318775.png SDF1_9-1710166318775.png](https://community.jmp.com/t5/image/serverpage/image-id/62072iE9476A09AB72D5DF/image-size/medium?v=v2&px=400)
Below is the JSL code saved to a scripting window that was used to generate the above graph
Graph Builder(
Graph Spacing( 0 ),
Variables( X( :height ), X( :height ), Y( :weight ) ),
Elements(
Position( 1, 1 ),
Points( X, Y, Legend( 26 ) ),
Smoother( X, Y, Legend( 27 ) )
),
Elements(
Position( 2, 1 ),
Points( X, Y, Legend( 28 ) ),
Smoother( X, Y, Legend( 29 ) )
),
SendToReport(
Dispatch(
{},
"height",
ScaleBox,
{Min( 50 ), Max( 60 ), Inc( 1 ), Minor Ticks( 1 )}
),
Dispatch(
{},
"height",
ScaleBox( 2 ),
{Min( 60 ), Max( 70.76 ), Inc( 10 ), Minor Ticks( 1 )}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
28,
Properties( 0, {Line Color( 5 )}, Item ID( "weight", 1 ) )
), Legend Model(
29,
Properties( 0, {Line Color( 5 )}, Item ID( "Smooth", 1 ) )
)}
)
)
);
I hope this helps.
Good luck!,
DS