<?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 add 45° (y=x) line to graph? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/7307#M7301</link>
    <description>&lt;P&gt;Here is a version of the platform with the line dashed and red&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$sample_data\Boston Housing.jmp" );
 
gb = Graph Builder(
       Show Control Panel( 0 ),
       Variables( X( :rooms ), Y( :distance ) ),  
       Elements( Points( X, Y, Legend( 1 ) ) ),  
       SendToReport(
              Dispatch( {}, "rooms", ScaleBox, {Min( 0 ), Max( 12 ), Inc( 2 ), Minor Ticks( 1 )} ),
              Dispatch( {}, "distance", ScaleBox, {Min( 0 ), Max( 12 ), Inc( 2 ), Minor Ticks( 1 )} ),
              Dispatch(
                     {},  
                                         "Graph Builder",  
                     FrameBox,  
                     {Marker Size( 3 ), Add Graphics Script(  
                                                     2,  
                           Description( "Script" ),  
                                                     Pen Color( "red" );  
                                                    Line Style( "dashed" );  
                                                   Y Function( x, x );  
                     ), Grid Line Order( 1 ), Reference Line Order( 3 )}
              )
       )  
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P style="margin: 0px 0px 10pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;The Graphing Elements are documented in the Scripting Guide, starting on page 497.&amp;nbsp; The Scripting Guide is available under the JMP Help==&amp;gt;Books==&amp;gt;Scripting Guide.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jun 2018 12:33:58 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-06-15T12:33:58Z</dc:date>
    <item>
      <title>How to add 45° (y=x) line to graph?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/7302#M7296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"&gt;Does anyone have a smarter way to add a 45° (y=x) line to an x-y plot? I currently do the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"&gt;Set x-axis and y-axis pixels to the same value in the Frame Size dialog&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"&gt;Use the drawing tool to manually add a line to the plot&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"&gt;The line is never quite perfect and has to be adjusted when plot is changed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif; font-size: 12pt;"&gt;JMP Developers: this would be a great option to add to: Y-axis specification, Reference Lines. It is useful when comparing predicted versus actual; lab determinations versus standard values; etc.. Thinking about this more, having the option to enter f(x) for a y-reference line would be even better than just the 45° (y=x) line.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 16:40:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/7302#M7296</guid>
      <dc:creator>markschahl</dc:creator>
      <dc:date>2013-08-21T16:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to add 45° (y=x) line to graph?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/7303#M7297</link>
      <description>&lt;P&gt;In the &lt;EM&gt;Fit Y by X&lt;/EM&gt; platform you can choose &lt;EM&gt;Fit special...&lt;/EM&gt; and lock intercept to zero and slope to one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In most platforms it is also possible to draw a line representing a function by a graphics script. Right-click on the graph and select &lt;EM&gt;Customize...&lt;/EM&gt; In the dialog press the plus sign and select &lt;EM&gt;Y Function&lt;/EM&gt; in the &lt;EM&gt;Templates&lt;/EM&gt; drop-down menu. Add &lt;EM&gt;Y Function( y = x, x ); &lt;/EM&gt;to get a straight y=x line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;JSL-example:&lt;/P&gt;
&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px; color: #801392;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Fitness.jmp" );
biv = dt &amp;lt;&amp;lt; Bivariate( Y( :MaxPulse ), X( :RunPulse ) );
Report( Biv )[Framebox( 1 )] &amp;lt;&amp;lt; add graphics script( Y Function( y = x, x ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P style="margin: 0.0px 0.0px 0.0px 0.0px;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 12:31:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/7303#M7297</guid>
      <dc:creator>ms</dc:creator>
      <dc:date>2018-06-15T12:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to add 45° (y=x) line to graph?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/7304#M7298</link>
      <description>&lt;P&gt;Very cool.&amp;nbsp; I tried it in Graph Builder and it works like a charm.&amp;nbsp; Here's an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = open("$sample_data\Boston Housing.jmp");
 
gb = Graph Builder(
    Show Control Panel( 0 ),
    Variables( X( :rooms ), Y( :distance ) ),
    Elements( Points( X, Y, Legend( 1 ) ) ),
    SendToReport(
        Dispatch( {}, "rooms", ScaleBox,
            {Min( 0 ), Max( 12 ), Inc( 2 ), Minor Ticks( 1 )} ),
        Dispatch( {}, "distance", ScaleBox,
            {Min( 0 ), Max( 12 ), Inc( 2 ), Minor Ticks( 1 )} ),
        Dispatch( {}, "Graph Builder", FrameBox,
            {Marker Size( 3 ), Add Graphics Script(
                2, Description( "Script" ), Y Function( x, x )
            ), Grid Line Order( 1 ), Reference Line Order( 3 )} )
    )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 12:32:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/7304#M7298</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-06-15T12:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to add 45° (y=x) line to graph?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/7305#M7299</link>
      <description>&lt;P&gt;Here is another script using the Bivariate platform (I use JMP 10.0.2):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA/Fitness.jmp");
 
dt &amp;lt;&amp;lt; Bivariate(
  Y(:MaxPulse),
  X(:RunPulse),
  SendToReport(
  Dispatch(
  {},
  "Bivar Plot",
  FrameBox,
  {Add Graphics Script(2, Description("Script"), YFunction(x, x)),
  Grid Line Order(1), Reference Line Order(3)}
  )
  )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 12:33:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/7305#M7299</guid>
      <dc:creator>blackeneth</dc:creator>
      <dc:date>2018-06-15T12:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to add 45° (y=x) line to graph?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/7306#M7300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can the 45 degree reference line be reformatted as dashes and alternate color?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Mar 2016 16:31:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/7306#M7300</guid>
      <dc:creator>josh</dc:creator>
      <dc:date>2016-03-12T16:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to add 45° (y=x) line to graph?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/7307#M7301</link>
      <description>&lt;P&gt;Here is a version of the platform with the line dashed and red&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$sample_data\Boston Housing.jmp" );
 
gb = Graph Builder(
       Show Control Panel( 0 ),
       Variables( X( :rooms ), Y( :distance ) ),  
       Elements( Points( X, Y, Legend( 1 ) ) ),  
       SendToReport(
              Dispatch( {}, "rooms", ScaleBox, {Min( 0 ), Max( 12 ), Inc( 2 ), Minor Ticks( 1 )} ),
              Dispatch( {}, "distance", ScaleBox, {Min( 0 ), Max( 12 ), Inc( 2 ), Minor Ticks( 1 )} ),
              Dispatch(
                     {},  
                                         "Graph Builder",  
                     FrameBox,  
                     {Marker Size( 3 ), Add Graphics Script(  
                                                     2,  
                           Description( "Script" ),  
                                                     Pen Color( "red" );  
                                                    Line Style( "dashed" );  
                                                   Y Function( x, x );  
                     ), Grid Line Order( 1 ), Reference Line Order( 3 )}
              )
       )  
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P style="margin: 0px 0px 10pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;The Graphing Elements are documented in the Scripting Guide, starting on page 497.&amp;nbsp; The Scripting Guide is available under the JMP Help==&amp;gt;Books==&amp;gt;Scripting Guide.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 12:33:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/7307#M7301</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-06-15T12:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to add 45° (y=x) line to graph?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/794679#M97144</link>
      <description>&lt;P&gt;I use a 1:1 line so often for my analyses!&lt;BR /&gt;Now I added a shortcut icon to&amp;nbsp;&lt;LI-MESSAGE title="Graph Builder Toolbar" uid="565466" url="https://community.jmp.com/t5/JMP-Add-Ins/Graph-Builder-Toolbar/m-p/565466#U565466" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1725395278996.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/67858i161BC06EE4F15DFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1725395278996.png" alt="hogi_0-1725395278996.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 20:28:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/794679#M97144</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-09-03T20:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to add 45° (y=x) line to graph?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/933690#M108996</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I've tried to use this feature to make a reference line but it's not working. Can someone help me figure out why?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2026 21:50:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/933690#M108996</guid>
      <dc:creator>ndowidar</dc:creator>
      <dc:date>2026-03-03T21:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to add 45° (y=x) line to graph?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/933691#M108997</link>
      <description>&lt;P&gt;can you share a larger screenshot? what is your x and y range?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2026 21:52:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-add-45-y-x-line-to-graph/m-p/933691#M108997</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-03-03T21:52:55Z</dc:date>
    </item>
  </channel>
</rss>

