<?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 Re: How to set the y axis  to cross the origin of the x axis in JMP in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-set-the-y-axis-to-cross-the-origin-of-the-x-axis-in-JMP/m-p/216258#M43204</link>
    <description>&lt;P&gt;This is most definitely NOT a recommendation. But, if the axis ranges are fixed and only the data changes, you might (with some fiddling) be able to adapt the approach below. The alternative of doing everything via a graphics script is probably even more time and trouble, at least to get something general.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-07-04 at 16.30.16.png" style="width: 370px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/18187i22734E5D07753D44/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-07-04 at 16.30.16.png" alt="Screen Shot 2019-07-04 at 16.30.16.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");

biv = dt &amp;lt;&amp;lt; Bivariate( Y( :height ), X( :weight ) );
bivRep = Report(biv);
yAB = bivRep[axisBox(1)];
xAB = bivRep[axisBox(2)];

// Take a 'picture' of each axis without the label
yAB &amp;lt;&amp;lt; removeAxisLabel;
yAxisPic = yAB &amp;lt;&amp;lt; getPicture;
yAB &amp;lt;&amp;lt; addAxisLabel("height");
xAB &amp;lt;&amp;lt; removeAxisLabel;
xAxisPic = xAB &amp;lt;&amp;lt; getPicture;
xAB &amp;lt;&amp;lt; addAxisLabel("weight");

// Some axis values
yMax = yAB &amp;lt;&amp;lt; getMax;
yMin = yAB &amp;lt;&amp;lt; getMin;
xMax = xAB &amp;lt;&amp;lt; getMax;
xMin = xAB &amp;lt;&amp;lt; getMin;

// Positions for the fake axes
yAxisPos = 100;
xAxisPos = 60; 

fb = bivRep[frameBox(1)];
// Add fake y axis
fb &amp;lt;&amp;lt; Add Image(
			image( yAxisPic ),
			bounds( top( yMax+1.1 ), Left( (yAxisPos - 10) ), bottom( yMin-1.1 ), Right( yAxisPos ) )
			);
fb &amp;lt;&amp;lt; addGraphicsScript(VLine(yAxisPos));

// Add fake x axis
fb &amp;lt;&amp;lt; Add Image(
			image( xAxisPic ),
			bounds( top( xAxisPos ), Left( (xMin-5) ), bottom( xAxisPos - 2 ), Right( xMax+5 ) )
			);
fb &amp;lt;&amp;lt; addGraphicsScript(HLine(xAxisPos));

// Edit the real axes
yAB &amp;lt;&amp;lt; Show Major Labels( 0 );
yAB &amp;lt;&amp;lt; Show Major Ticks( 0 );
yAB &amp;lt;&amp;lt; Show Minor Ticks( 0 );
xAB &amp;lt;&amp;lt; Show Major Labels( 0 );
xAB &amp;lt;&amp;lt; Show Major Ticks( 0 );
xAB &amp;lt;&amp;lt; Show Minor Ticks( 0 );
&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;</description>
    <pubDate>Thu, 04 Jul 2019 15:46:00 GMT</pubDate>
    <dc:creator>ian_jmp</dc:creator>
    <dc:date>2019-07-04T15:46:00Z</dc:date>
    <item>
      <title>How to set the y axis  to cross the origin of the x axis in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-the-y-axis-to-cross-the-origin-of-the-x-axis-in-JMP/m-p/215787#M43098</link>
      <description>&lt;P&gt;Hello, I am trying to get a nyquist plot of imaginary vs real impedance. However I cant seem to set the y axis to cross the origin 0.0 on the x axis the way it's done in excel. is this possible in JMP?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jmp-4.jpg" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/18138i31C620E2D77950C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="jmp-4.jpg" alt="jmp-4.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 13:27:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-the-y-axis-to-cross-the-origin-of-the-x-axis-in-JMP/m-p/215787#M43098</guid>
      <dc:creator>richinex</dc:creator>
      <dc:date>2019-07-02T13:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the y axis  to cross the origin of the x axis in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-the-y-axis-to-cross-the-origin-of-the-x-axis-in-JMP/m-p/215820#M43112</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/15247"&gt;@richinex&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It sounds like you're looking to adjust the display range of your X and Y axes. You can control the axis settings by double-clicking an axis, or right-clicking &amp;gt; Axis Settings. In your case, you'll want to go to the X-Axis and Y-Axis settings, and set the Minimum to 0 -- that will set the axis such that the lower limit is 0, which means your Y axis on the plot will cross the origin.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="settings.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/18137iF5F428C76A3A9C8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="settings.png" alt="settings.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can also adjust axes interactively by hovering on the corners until the hand turns sideways, then drag:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="axes.gif" style="width: 916px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/18136i8532CC88045BD46E/image-size/large?v=v2&amp;amp;px=999" role="button" title="axes.gif" alt="axes.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 12:20:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-the-y-axis-to-cross-the-origin-of-the-x-axis-in-JMP/m-p/215820#M43112</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2019-07-02T12:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the y axis  to cross the origin of the x axis in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-the-y-axis-to-cross-the-origin-of-the-x-axis-in-JMP/m-p/216171#M43179</link>
      <description>&lt;P&gt;Hi Julian, thanks for the reply. In the illustration you moved the x axis with the grabber. is it possible to move the y-axis in a horizontal direction given that both axes are isoaxial with same min and max values .&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 20:03:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-the-y-axis-to-cross-the-origin-of-the-x-axis-in-JMP/m-p/216171#M43179</guid>
      <dc:creator>richinex</dc:creator>
      <dc:date>2019-07-03T20:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the y axis  to cross the origin of the x axis in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-the-y-axis-to-cross-the-origin-of-the-x-axis-in-JMP/m-p/216173#M43180</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/15247"&gt;@richinex&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;If I'm understanding your question correctly, you would like changes you make to the X-Axis to also change the Y-Axis at the same time? A kind of "Lock Y-Axis to X-Axis Settings." It's possible to do that via scripting, but not natively in Graph Builder. You can, however, copy the settings you set for one axis, and paste them on to another. Right-click an Axis &amp;gt; Edit &amp;gt; Copy Axis Settings. Then, right-click the other axis &amp;gt; Edit &amp;gt; Paste Axis Settings. &lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="copy axis settings.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/18175iC0DAECF70A2FFE02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="copy axis settings.png" alt="copy axis settings.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does that address your question? If not, is there an example you can share of the kind of plot you wish to make?&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 20:17:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-the-y-axis-to-cross-the-origin-of-the-x-axis-in-JMP/m-p/216173#M43180</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2019-07-03T20:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the y axis  to cross the origin of the x axis in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-the-y-axis-to-cross-the-origin-of-the-x-axis-in-JMP/m-p/216174#M43181</link>
      <description>&lt;P&gt;Please find attached a screenshot of what i meant. in the screenshot the y-axiz crosses x at (-10)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_2.jpg" style="width: 612px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/18177iDDF6832252103B54/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_2.jpg" alt="Screenshot_2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 21:44:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-the-y-axis-to-cross-the-origin-of-the-x-axis-in-JMP/m-p/216174#M43181</guid>
      <dc:creator>richinex</dc:creator>
      <dc:date>2019-07-03T21:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the y axis  to cross the origin of the x axis in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-the-y-axis-to-cross-the-origin-of-the-x-axis-in-JMP/m-p/216176#M43182</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/15247"&gt;@richinex&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I think I understand. You want to not just change the axis scale, but you want to change where the Y axis is displayed on the plot. For instance, in this plot, the Y-axis crosses X at -10 (I simply set the axis min to -10):&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="-10.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/18176i39DCD9F26652E3B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="-10.png" alt="-10.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But, that's not like your plot because the Y scale of your plot is actually -150 to 50, and the Y-axis is *displayed* at X=-10. Also, your X axis isn't displayed at Y = 0, but rather Y =&amp;nbsp; 10. In JMP (and many programs), it's standard for the axes to be displayed at the margins, not inside the plot, to not obstruct viewing of the points. But, that's a style choice, and I get why it's desirable at times (though I think I would reserve this kind of plot with axes at the origin to not confuse the viewer). Whatever the case, there are ways you could pull this together with some scripting, or even by dragging in the axis elements, adding reference lines, and properly sizing everything, but it wouldn't be a great workflow. I'm sorry to say I don't think there is an easy solution for this one, but I'll keep pondering.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2026"&gt;@jules&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 20:35:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-the-y-axis-to-cross-the-origin-of-the-x-axis-in-JMP/m-p/216176#M43182</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2019-07-03T20:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the y axis  to cross the origin of the x axis in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-the-y-axis-to-cross-the-origin-of-the-x-axis-in-JMP/m-p/216177#M43183</link>
      <description>Thanks so much. You've been really helpful.</description>
      <pubDate>Wed, 03 Jul 2019 20:38:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-the-y-axis-to-cross-the-origin-of-the-x-axis-in-JMP/m-p/216177#M43183</guid>
      <dc:creator>richinex</dc:creator>
      <dc:date>2019-07-03T20:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the y axis  to cross the origin of the x axis in JMP</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-set-the-y-axis-to-cross-the-origin-of-the-x-axis-in-JMP/m-p/216258#M43204</link>
      <description>&lt;P&gt;This is most definitely NOT a recommendation. But, if the axis ranges are fixed and only the data changes, you might (with some fiddling) be able to adapt the approach below. The alternative of doing everything via a graphics script is probably even more time and trouble, at least to get something general.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-07-04 at 16.30.16.png" style="width: 370px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/18187i22734E5D07753D44/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-07-04 at 16.30.16.png" alt="Screen Shot 2019-07-04 at 16.30.16.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);
dt = Open("$SAMPLE_DATA/Big Class.jmp");

biv = dt &amp;lt;&amp;lt; Bivariate( Y( :height ), X( :weight ) );
bivRep = Report(biv);
yAB = bivRep[axisBox(1)];
xAB = bivRep[axisBox(2)];

// Take a 'picture' of each axis without the label
yAB &amp;lt;&amp;lt; removeAxisLabel;
yAxisPic = yAB &amp;lt;&amp;lt; getPicture;
yAB &amp;lt;&amp;lt; addAxisLabel("height");
xAB &amp;lt;&amp;lt; removeAxisLabel;
xAxisPic = xAB &amp;lt;&amp;lt; getPicture;
xAB &amp;lt;&amp;lt; addAxisLabel("weight");

// Some axis values
yMax = yAB &amp;lt;&amp;lt; getMax;
yMin = yAB &amp;lt;&amp;lt; getMin;
xMax = xAB &amp;lt;&amp;lt; getMax;
xMin = xAB &amp;lt;&amp;lt; getMin;

// Positions for the fake axes
yAxisPos = 100;
xAxisPos = 60; 

fb = bivRep[frameBox(1)];
// Add fake y axis
fb &amp;lt;&amp;lt; Add Image(
			image( yAxisPic ),
			bounds( top( yMax+1.1 ), Left( (yAxisPos - 10) ), bottom( yMin-1.1 ), Right( yAxisPos ) )
			);
fb &amp;lt;&amp;lt; addGraphicsScript(VLine(yAxisPos));

// Add fake x axis
fb &amp;lt;&amp;lt; Add Image(
			image( xAxisPic ),
			bounds( top( xAxisPos ), Left( (xMin-5) ), bottom( xAxisPos - 2 ), Right( xMax+5 ) )
			);
fb &amp;lt;&amp;lt; addGraphicsScript(HLine(xAxisPos));

// Edit the real axes
yAB &amp;lt;&amp;lt; Show Major Labels( 0 );
yAB &amp;lt;&amp;lt; Show Major Ticks( 0 );
yAB &amp;lt;&amp;lt; Show Minor Ticks( 0 );
xAB &amp;lt;&amp;lt; Show Major Labels( 0 );
xAB &amp;lt;&amp;lt; Show Major Ticks( 0 );
xAB &amp;lt;&amp;lt; Show Minor Ticks( 0 );
&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jul 2019 15:46:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-set-the-y-axis-to-cross-the-origin-of-the-x-axis-in-JMP/m-p/216258#M43204</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2019-07-04T15:46:00Z</dc:date>
    </item>
  </channel>
</rss>

