<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to update the x-axis to be zoomed in? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-update-the-x-axis-to-be-zoomed-in/m-p/732113#M91411</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have this following script for the graph in which increment of x-axis is 10, but I want to update the x-axis so that increment from 0 to 10 is 1 and after that increment should be 10 for rest of the axis. Is there anyway to update this script to get that?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Variables( X( :"Time (min)"n ), Y( :"A -024"n ) ),
	Elements( Points( X, Y, Legend( 7 ) ), Smoother( X, Y, Legend( 8 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Time (min)",
			ScaleBox,
			{Format( "Best", 12 ), Min( 0 ), Max( 80 ), Inc( 10 ),
			Minor Ticks( 1 )}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 11 Mar 2024 10:51:11 GMT</pubDate>
    <dc:creator>billi</dc:creator>
    <dc:date>2024-03-11T10:51:11Z</dc:date>
    <item>
      <title>How to update the x-axis to be zoomed in?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-update-the-x-axis-to-be-zoomed-in/m-p/732113#M91411</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have this following script for the graph in which increment of x-axis is 10, but I want to update the x-axis so that increment from 0 to 10 is 1 and after that increment should be 10 for rest of the axis. Is there anyway to update this script to get that?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Variables( X( :"Time (min)"n ), Y( :"A -024"n ) ),
	Elements( Points( X, Y, Legend( 7 ) ), Smoother( X, Y, Legend( 8 ) ) ),
	SendToReport(
		Dispatch(
			{},
			"Time (min)",
			ScaleBox,
			{Format( "Best", 12 ), Min( 0 ), Max( 80 ), Inc( 10 ),
			Minor Ticks( 1 )}
		)
	)
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Mar 2024 10:51:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-update-the-x-axis-to-be-zoomed-in/m-p/732113#M91411</guid>
      <dc:creator>billi</dc:creator>
      <dc:date>2024-03-11T10:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to update the x-axis to be zoomed in?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-update-the-x-axis-to-be-zoomed-in/m-p/732321#M91425</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14229"&gt;@billi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If I understand your request correctly, you'd like to have a single x-axis with two different increment values, right? Where a portion of the x-axis, say from x1 to x2 has an increment of 1 while from x2 to x3, the increment is 10?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If that's the case, I don't think there is a way that you can get JMP to use two different increment values for the same axis. You can however use Graph Builder and "trick" it into getting something similar to what you want, but with some less than ideal graphical quirks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; As an example, I'm using the Big Class.jmp file and graphing :weight vs :height, but I also use :height as a second x-axis. I graph the first x-axis from 50-60 and the second from 60-71 and set the increments to 1 and 10, respectively. You get a graph that looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SDF1_0-1710160709428.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62062i6ED6FCEBB3861064/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SDF1_0-1710160709428.png" alt="SDF1_0-1710160709428.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; So in a way it's possible to do that, but you'll have two x-axes and then the thin vertical line separating the two graphs (this is with graph spacing set to 0). It may not be exactly what you're looking for, but it's a solution that could work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!,&lt;/P&gt;
&lt;P&gt;DS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 12:41:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-update-the-x-axis-to-be-zoomed-in/m-p/732321#M91425</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2024-03-11T12:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to update the x-axis to be zoomed in?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-update-the-x-axis-to-be-zoomed-in/m-p/732343#M91426</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12549"&gt;@SDF1&lt;/a&gt;&amp;nbsp;Thank you very much, this solution will work. Could you please walk me through the steps to create graph you showed above or point me to any documentation that I can look up that would be very helpful?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 13:31:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-update-the-x-axis-to-be-zoomed-in/m-p/732343#M91426</guid>
      <dc:creator>billi</dc:creator>
      <dc:date>2024-03-11T13:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to update the x-axis to be zoomed in?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-update-the-x-axis-to-be-zoomed-in/m-p/732357#M91428</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14229"&gt;@billi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sure, so in the example that I posted, I used the Big Class.jmp file, which you can find in the Help &amp;gt; Sample Index menu.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The first thing you'll want to do is change your preferences so the graph spacing is zero, not just unchecked (default).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;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 &amp;gt; Preferences, Select Platforms and then scroll down to select Graph Builder:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SDF1_10-1710166434392.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62073i78FC3DA88196D011/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SDF1_10-1710166434392.png" alt="SDF1_10-1710166434392.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Make sure the checkbox for Graph Spacing is marked, and then set the spacing to 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 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:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SDF1_0-1710165869813.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62063i2F4F39812853DD41/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SDF1_0-1710165869813.png" alt="SDF1_0-1710165869813.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 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:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SDF1_1-1710165925822.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62064iB808F2F108D4ED0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SDF1_1-1710165925822.png" alt="SDF1_1-1710165925822.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;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:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SDF1_2-1710165997904.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62065iFC77AD111B6DE2F6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SDF1_2-1710165997904.png" alt="SDF1_2-1710165997904.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 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:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SDF1_3-1710166065038.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62066i67D45FE0FBA3F949/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SDF1_3-1710166065038.png" alt="SDF1_3-1710166065038.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and your graph will now look like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SDF1_4-1710166098205.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62067i679722EE2DD1AB7A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SDF1_4-1710166098205.png" alt="SDF1_4-1710166098205.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 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.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SDF1_5-1710166187887.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62068i8F362CD8CF9009BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SDF1_5-1710166187887.png" alt="SDF1_5-1710166187887.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Your graph should now look like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SDF1_6-1710166206567.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62069i792FD9CF0D9682F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SDF1_6-1710166206567.png" alt="SDF1_6-1710166206567.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 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:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SDF1_7-1710166269718.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62070i2CE405634A642526/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SDF1_7-1710166269718.png" alt="SDF1_7-1710166269718.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Your graph should now look like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SDF1_9-1710166318775.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62072iE9476A09AB72D5DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SDF1_9-1710166318775.png" alt="SDF1_9-1710166318775.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Below is the JSL code saved to a scripting window that was used to generate the above graph&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;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 ) )
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!,&lt;/P&gt;
&lt;P&gt;DS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 14:18:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-update-the-x-axis-to-be-zoomed-in/m-p/732357#M91428</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2024-03-11T14:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to update the x-axis to be zoomed in?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-update-the-x-axis-to-be-zoomed-in/m-p/732391#M91430</link>
      <description>&lt;P&gt;One very small thing you can add is to hide those "extra" legend items. Double click on legend and unselect them&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1710169427864.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62074i35C9D01121700982/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1710169427864.png" alt="jthi_0-1710169427864.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1710169434118.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62075i2B99458B613ABD90/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1710169434118.png" alt="jthi_1-1710169434118.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt; depending on your data, be sure that it is &lt;STRONG&gt;obvious to the readers that the x-axis is changing&lt;/STRONG&gt; as it can be very difficult to spot. &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 15:08:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-update-the-x-axis-to-be-zoomed-in/m-p/732391#M91430</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-03-11T15:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to update the x-axis to be zoomed in?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-update-the-x-axis-to-be-zoomed-in/m-p/732457#M91432</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12549"&gt;@SDF1&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp; appreciate your help. It worked.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 17:12:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-update-the-x-axis-to-be-zoomed-in/m-p/732457#M91432</guid>
      <dc:creator>billi</dc:creator>
      <dc:date>2024-03-11T17:12:34Z</dc:date>
    </item>
  </channel>
</rss>

