<?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: Overlaying datapoints and function in Graph Builder in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Overlaying-datapoints-and-function-in-Graph-Builder/m-p/931717#M108832</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_6-1771436500431.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/94170i989CFE5C47224127/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_6-1771436500431.png" alt="hogi_6-1771436500431.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Use the "variables" setting and deactivate "Column 2" for the Formula Plot - and "function" for the points.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_7-1771436518453.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/94171i58F43AF273AB50DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_7-1771436518453.png" alt="hogi_7-1771436518453.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Feb 2026 17:43:17 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2026-02-18T17:43:17Z</dc:date>
    <item>
      <title>Overlaying datapoints and function in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Overlaying-datapoints-and-function-in-Graph-Builder/m-p/931704#M108831</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;P&gt;I am trying to overlay datapoints from a column and a function line in Graph Builder. However, whenever I place the variables on the same axis and overlay them, I end up with either:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;both the datapoints &lt;EM&gt;and&lt;/EM&gt; the function drawn as points, or&lt;/LI&gt;
&lt;LI&gt;both drawn as lines.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;What I want is simple:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the column data should appear as points, and&lt;/LI&gt;
&lt;LI&gt;the function should appear as a line,&lt;BR /&gt;overlaid in the same graph.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Below is a JSL script that generates a small sample table with two random columns and a function column. Here, Column 1 and Column 2 are random values, and the &lt;EM&gt;function&lt;/EM&gt; column is a polynomial function of Column 1. When I use Graph Builder, JMP places them on separate graphs unless I overlay them, and once I overlay, Graph Builder forces all Y variables to share the same element type.&lt;/P&gt;
&lt;P&gt;It appears that Graph Builder cannot mix points and lines when multiple Y variables share the same axis in an overlay.&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Attached is the plot that I currently see, showing how Graph Builder places the function and datapoints on separate axes or forces them into the same element type when overlaid. Here I am using the version JMP 18.&lt;/DIV&gt;
&lt;P&gt;Does anyone know whether there is a way to overlay a function line and datapoints on the same graph in Graph Builder while keeping different element types? Or is Graph Builder limited in this case?&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Table( "Function_plot",
	Add Rows( 10 ),
	New Script(
		"plot_function",
		Graph Builder(
			Variables( X( :Column 1 ), Y( :function ), Y( :Column 2 ) ),
			Elements( Position( 1, 1 ), Formula( X, Y, Legend( 13 ) ) ),
			Elements( Position( 1, 2 ), Points( X, Y, Legend( 7 ) ) ),
			SendToReport(
				Dispatch( {}, "400", LegendBox,
					{Legend Position( {13, [1], 7, [0]} )}
				)
			)
		)
	),
	New Column( "Column 1",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [3, 1, 5, 9, 3, 12, 15, 19, 21, 17] ),
		Set Display Width( 53 )
	),
	New Column( "Column 2",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Set Values( [22, 76, 34, 19, 9, 45, 78, 63, 19, 5] ),
		Set Display Width( 53 )
	),
	New Column( "function",
		Numeric,
		"Continuous",
		Format( "Best", 12 ),
		Formula( :Column 1 ^ 3 + 5 ),
		Set Selected,
		Set Display Width( 47 )
	)
);

Graph Builder(
	Variables( X( :Column 1 ), Y( :function ), Y( :Column 2 ) ),
	Elements( Position( 1, 1 ), Formula( X, Y, Legend( 13 ) ) ),
	Elements( Position( 1, 2 ), Points( X, Y, Legend( 7 ) ) ),
	SendToReport(
		Dispatch( {}, "400", LegendBox, {Legend Position( {13, [1], 7, [0]} )} )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 18 Feb 2026 16:55:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Overlaying-datapoints-and-function-in-Graph-Builder/m-p/931704#M108831</guid>
      <dc:creator>Vysakhrnair999</dc:creator>
      <dc:date>2026-02-18T16:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Overlaying datapoints and function in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Overlaying-datapoints-and-function-in-Graph-Builder/m-p/931717#M108832</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_6-1771436500431.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/94170i989CFE5C47224127/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_6-1771436500431.png" alt="hogi_6-1771436500431.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Use the "variables" setting and deactivate "Column 2" for the Formula Plot - and "function" for the points.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_7-1771436518453.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/94171i58F43AF273AB50DF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_7-1771436518453.png" alt="hogi_7-1771436518453.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 17:43:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Overlaying-datapoints-and-function-in-Graph-Builder/m-p/931717#M108832</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-02-18T17:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Overlaying datapoints and function in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Overlaying-datapoints-and-function-in-Graph-Builder/m-p/931732#M108833</link>
      <description>&lt;P&gt;The values in Column 2 and "Function" are very different.&lt;BR /&gt;If you have access to JMP 19, you can try parallel Y Axes:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_4-1771436271508.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/94168i46A8E63108B7A5E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_4-1771436271508.png" alt="hogi_4-1771436271508.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;and create a plot like this one:&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_5-1771436346001.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/94169iD5BB4F70407C99CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_5-1771436346001.png" alt="hogi_5-1771436346001.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Feb 2026 17:39:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Overlaying-datapoints-and-function-in-Graph-Builder/m-p/931732#M108833</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2026-02-18T17:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Overlaying datapoints and function in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Overlaying-datapoints-and-function-in-Graph-Builder/m-p/931899#M108842</link>
      <description>&lt;P&gt;Thanks for the suggestions. This works!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2026 08:34:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Overlaying-datapoints-and-function-in-Graph-Builder/m-p/931899#M108842</guid>
      <dc:creator>Vysakhrnair999</dc:creator>
      <dc:date>2026-02-20T08:34:25Z</dc:date>
    </item>
  </channel>
</rss>

