<?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 contour plots in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Overlaying-contour-plots/m-p/876636#M103970</link>
    <description>&lt;P&gt;Sadly, my data occupies the same range on the X and Y axes.&amp;nbsp; I was wanting to overlay contours of empirical data, but the contour profiler only works with models.&amp;nbsp; I ended up putting the prediction equations for each dependent variable into the contour profiler to get the overlaid contours that I needed.&amp;nbsp; Thanks for your reply though.&lt;/P&gt;</description>
    <pubDate>Tue, 27 May 2025 13:14:10 GMT</pubDate>
    <dc:creator>AdditiveMustang</dc:creator>
    <dc:date>2025-05-27T13:14:10Z</dc:date>
    <item>
      <title>Overlaying contour plots</title>
      <link>https://community.jmp.com/t5/Discussions/Overlaying-contour-plots/m-p/875123#M103872</link>
      <description>&lt;P&gt;I have two contour plots that have the same X and Y scales (Surface Velocity on the horizontal axis, Travel Speed on the vertical).&amp;nbsp; The contours on the first graph represent Heat Flux, the contours on the second represent Flow Stress.&amp;nbsp; I've tried following the solution that calls for copying the frame contents from one plot and pasting the contents onto the second plot, but nothing happens!&amp;nbsp; Is it not possible to combine contour plots when the contours represent different things?&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="AdditiveMustang_0-1747837100352.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76058iF9873EA75F8F20C7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdditiveMustang_0-1747837100352.png" alt="AdditiveMustang_0-1747837100352.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 14:21:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Overlaying-contour-plots/m-p/875123#M103872</guid>
      <dc:creator>AdditiveMustang</dc:creator>
      <dc:date>2025-05-21T14:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Overlaying contour plots</title>
      <link>https://community.jmp.com/t5/Discussions/Overlaying-contour-plots/m-p/875144#M103873</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/69255"&gt;@AdditiveMustang&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome in the Community !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The method you mentioned will only copy and paste the styling, format, colors, etc... of one graph to the other.&lt;BR /&gt;If you want to overlay two different responses on the same experimental space, I would recommend using the&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/18.1/#page/jmp/contour-profiler.shtml#" target="_blank"&gt;Contour Profiler&lt;/A&gt;&amp;nbsp;with the prediction formula of your two responses.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example on the "Bounce Data" dataset with two prediction formula responses Stretch and Price (added) obtained from models :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_1-1747838117681.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76060i7392901FD9139C03/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_1-1747838117681.png" alt="Victor_G_1-1747838117681.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this answer will help you,&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 14:35:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Overlaying-contour-plots/m-p/875144#M103873</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2025-05-21T14:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Overlaying contour plots</title>
      <link>https://community.jmp.com/t5/Discussions/Overlaying-contour-plots/m-p/875455#M103889</link>
      <description>&lt;P&gt;Your question: "&lt;SPAN&gt;Is it not possible to combine contour plots when the contours represent different things?". Not within the Contour Plot platform, as far as I know. But I have a trick that might work, using Graph Builder, &lt;EM&gt;if&lt;/EM&gt; the contour line labels are not critical.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I guess your data is currently in a "wide" format: (X, Y, Z1, Z2). See the attached data table and run the Table Script for an example of how to first stack the data into a "tall" format (X, Y, Z, Label), then split the Y-Axis into (X, Y1, Y2, Z).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The next step is to create the contour plot in Graph Builder with both Y1 and Y2 in the Y-Axis role. Move one of them to the right to create a "dual" Y-Axis. This will give you two overlaid Contour Plots with separate color scales. Each color scale can be customized individually. This is also included in the Table Script in the attached Data Table. Also copied the Table Script below for reference.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_1-1747916026941.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76100iAD2AC26D672B2765/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christianz_1-1747916026941.png" alt="christianz_1-1747916026941.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Stack the data and add a label column
stacked_table = Current Data Table() &amp;lt;&amp;lt; Stack(
	columns( :Z1, :Z2 ),
	Stacked Data Column( "Z" ),
	Stack By Row( 0 ),
	Output Table( "Stacked Data" )
);

// Create Y1 and Y2 columns
stacked_table &amp;lt;&amp;lt; Apply Formula(
	Columns( :Y ),
	Formula( If( Contains( :Label, "1" ), :Y, Empty() ) ),
	Output( New Formula( "Y1" ) )
);
stacked_table &amp;lt;&amp;lt; Apply Formula(
	Columns( :Y ),
	Formula( If( Contains( :Label, "2" ), :Y, Empty() ) ),
	Output( New Formula( "Y2" ) )
);

stacked_table &amp;lt;&amp;lt; Graph Builder(
	Size( 1890, 898 ),
	Show Control Panel( 0 ),
	Legend Position( "Inside Left" ),
	Variables(
		X( :X ),
		Y( :Y1 ),
		Y( :Y2, Position( 1 ), Side( "Right" ) ),
		Color( :Z )
	),
	Elements(
		Contour(
			X,
			Y( 1 ),
			Legend( 5 ),
			Fill( 0 ),
			Line( 1 ),
			Number of Levels( 12 ),
			Smoothness( 0.17934942968627 )
		),
		Contour(
			X,
			Y( 2 ),
			Legend( 6 ),
			Fill( 0 ),
			Line( 1 ),
			Number of Levels( 10 ),
			Smoothness( 0.135425360392331 )
		)
	),
	SendToReport(
		Dispatch( {}, "X", ScaleBox,
			{Min( 3.83582993593477 ), Max( 8 ), Inc( 1 ), Minor Ticks( 1 )}
		),
		Dispatch( {}, "400", ScaleBox,
			{Legend Model(
				5,
				Properties(
					0,
					{gradient( {Color Theme( "Viridis" )} )},
					Item ID( "Z", 1 )
				)
			), Legend Model(
				6,
				Properties(
					0,
					{gradient(
						{Color Theme( "Black Body" ), Scale Values( [0 1] )}
					)},
					Item ID( "Z", 1 )
				)
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 11:27:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Overlaying-contour-plots/m-p/875455#M103889</guid>
      <dc:creator>christian-z</dc:creator>
      <dc:date>2025-05-26T11:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Overlaying contour plots</title>
      <link>https://community.jmp.com/t5/Discussions/Overlaying-contour-plots/m-p/876636#M103970</link>
      <description>&lt;P&gt;Sadly, my data occupies the same range on the X and Y axes.&amp;nbsp; I was wanting to overlay contours of empirical data, but the contour profiler only works with models.&amp;nbsp; I ended up putting the prediction equations for each dependent variable into the contour profiler to get the overlaid contours that I needed.&amp;nbsp; Thanks for your reply though.&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 13:14:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Overlaying-contour-plots/m-p/876636#M103970</guid>
      <dc:creator>AdditiveMustang</dc:creator>
      <dc:date>2025-05-27T13:14:10Z</dc:date>
    </item>
  </channel>
</rss>

