<?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: Contour plot, set X and Y ranges in JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345205#M59540</link>
    <description>&lt;P&gt;If you are looking to change the X axis values, not the contour values, they can be set by changing the AxisBox values for the X Axis&lt;/P&gt;
&lt;P&gt;.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="big.PNG" style="width: 457px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29158i0EAA0E48066AA590/image-size/large?v=v2&amp;amp;px=999" role="button" title="big.PNG" alt="big.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Little Pond.jmp" );
obj = dt &amp;lt;&amp;lt; Contour Plot( X( :X, :Y ), Y( :Z ) );
Report( obj )[AxisBox( 2 )] &amp;lt;&amp;lt; Min( 100 ) &amp;lt;&amp;lt; Max( 300 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="axis.PNG" style="width: 458px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29157i0291711AC16F07E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="axis.PNG" alt="axis.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Little Pond.jmp" );
obj = dt &amp;lt;&amp;lt; Contour Plot( X( :X, :Y ), Y( :Z ) );
Report( obj )[AxisBox( 2 )] &amp;lt;&amp;lt; Min( -100 ) &amp;lt;&amp;lt; Max( 400 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 02 Jan 2021 22:38:46 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-01-02T22:38:46Z</dc:date>
    <item>
      <title>Contour plot, set X and Y ranges in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345180#M59535</link>
      <description>&lt;P&gt;When creating a contour plot in JSL, is there a way to set fixed (pre-determined) values for the X and Y maximum and minimum? I.e. to define the area the contour plot will cover, as can be done manually in the X / Y Axis Settings dialogue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My datasets cover different ranges in x and y, but I would like all contour plots to have the same x and y extents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Contour Plot(
	X( :X_col, :Y_col ),
	Y( :data ),
	X_minimum(-75000),
	X_maximum(75000)
)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(This obviously does not work.)&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:09:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345180#M59535</guid>
      <dc:creator>gandi2223</dc:creator>
      <dc:date>2023-06-11T11:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Contour plot, set X and Y ranges in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345199#M59536</link>
      <description>&lt;P&gt;The messages that can be sent to the Contour Plot are documented in the Scripting Index, under the Contour Plot selection.&amp;nbsp; What you are looking for is the Specify Contours message.&amp;nbsp; The easiest way to get the messages to use, is to run the platform of interest(Contour Plot) with the specifics you want, and then to save the script to a script window.&amp;nbsp; It will have the JSL required to do the specifics you have requested.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Little Pond.jmp" );
obj = dt &amp;lt;&amp;lt; Contour Plot( X( :X, :Y ), Y( :Z ) );
obj &amp;lt;&amp;lt; Specify Contours(
	Min( -4 ),
	Max( 8 ),
	N( 4 )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2021 19:47:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345199#M59536</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-01-02T19:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Contour plot, set X and Y ranges in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345200#M59537</link>
      <description>&lt;P&gt;Thanks for the quick reply, but that sets the Z range, but what I would like to do is set the X-Y extent of the contour plot. I have tried saving the result of the manual process to the script window before, but I ended up with this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;SendToReport(
		Dispatch(
			{},
			"1",
			ScaleBox,
			{Min( -75000 ), Max( 75000 ), Inc( 20000 ), Minor Ticks( 0 )}
		)
	)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I wasn't able to incorporate this in the call of the Contour Plot platform using JSL.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2021 20:36:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345200#M59537</guid>
      <dc:creator>gandi2223</dc:creator>
      <dc:date>2021-01-02T20:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Contour plot, set X and Y ranges in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345202#M59538</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mlo1_0-1609622706866.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29156i30955C5FBC14F2DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mlo1_0-1609622706866.png" alt="mlo1_0-1609622706866.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do you mean this by incorporation ?&lt;BR /&gt;What does your log window say?&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2021 21:29:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345202#M59538</guid>
      <dc:creator>mlo1</dc:creator>
      <dc:date>2021-01-02T21:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Contour plot, set X and Y ranges in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345203#M59539</link>
      <description>&lt;P&gt;This works, but only with the&amp;nbsp;Specify Contours() command. If I take out this line, the log window records:&lt;/P&gt;&lt;PRE&gt;Cannot find ScaleBox[ "1" ] at {}
Cannot find ScaleBox[ "2" ] at {}&lt;/PRE&gt;&lt;P&gt;Unfortunately, I do not want to define the contour limits (in Z) manually, I was happy with JMP doing this automatically. My dataset is quite large, and I create several contour plots from it, hence manually calculating the min and max for each and passing it to the Specify Contours() command is possible but a bit awkward.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2021 22:19:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345203#M59539</guid>
      <dc:creator>gandi2223</dc:creator>
      <dc:date>2021-01-02T22:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Contour plot, set X and Y ranges in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345205#M59540</link>
      <description>&lt;P&gt;If you are looking to change the X axis values, not the contour values, they can be set by changing the AxisBox values for the X Axis&lt;/P&gt;
&lt;P&gt;.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="big.PNG" style="width: 457px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29158i0EAA0E48066AA590/image-size/large?v=v2&amp;amp;px=999" role="button" title="big.PNG" alt="big.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Little Pond.jmp" );
obj = dt &amp;lt;&amp;lt; Contour Plot( X( :X, :Y ), Y( :Z ) );
Report( obj )[AxisBox( 2 )] &amp;lt;&amp;lt; Min( 100 ) &amp;lt;&amp;lt; Max( 300 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="axis.PNG" style="width: 458px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29157i0291711AC16F07E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="axis.PNG" alt="axis.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Little Pond.jmp" );
obj = dt &amp;lt;&amp;lt; Contour Plot( X( :X, :Y ), Y( :Z ) );
Report( obj )[AxisBox( 2 )] &amp;lt;&amp;lt; Min( -100 ) &amp;lt;&amp;lt; Max( 400 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2021 22:38:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345205#M59540</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-01-02T22:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Contour plot, set X and Y ranges in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345207#M59541</link>
      <description>&lt;P&gt;Thanks, Jim, that's what I was looking for!&lt;/P&gt;&lt;P&gt;One minor detail - as mentioned, I create multiple plots, using the "By" attribute. So I had to loop over all obj elements:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;n = N Items( obj );
For(i = 1, i &amp;lt;= n, i++,
	Report( obj[i] )[AxisBox( 1 )] &amp;lt;&amp;lt; Min( -75000 ) &amp;lt;&amp;lt; Max( 75000 ) &amp;lt;&amp;lt; Inc( 25000 );
	Report( obj[i] )[AxisBox( 2 )] &amp;lt;&amp;lt; Min( -75000 ) &amp;lt;&amp;lt; Max( 75000 ) &amp;lt;&amp;lt; Inc( 25000 );
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This works, but please let me know in case there is a more elegant way.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2021 22:49:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345207#M59541</guid>
      <dc:creator>gandi2223</dc:creator>
      <dc:date>2021-01-02T22:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Contour plot, set X and Y ranges in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345208#M59542</link>
      <description>&lt;P&gt;Your approach is a fine way to handle this. Or if you are familiar with the XPath language you could use&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;( obj &amp;lt;&amp;lt; xpath( "//PictureBox//AxisBox[@charID = '1']")) &amp;lt;&amp;lt; Min( 100 ) &amp;lt;&amp;lt; Max( 300 ) ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 02 Jan 2021 23:43:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345208#M59542</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-01-02T23:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Contour plot, set X and Y ranges in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345244#M59556</link>
      <description>&lt;P&gt;An easy way to do this might be to set the &lt;A href="https://www.jmp.com/support/help/en/15.2/#page/jmp/properties-that-control-the-display-of-columns.shtml#ww459304" target="_self"&gt;Axis Property&lt;/A&gt; for your X and Y columns. That will ensure that every plot made with those columns has the scaling that you want.&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="2021-01-03_13-48-27.778.png" style="width: 556px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/29160i6F848C63BC737658/image-dimensions/556x332?v=v2" width="556" height="332" role="button" title="2021-01-03_13-48-27.778.png" alt="2021-01-03_13-48-27.778.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 03 Jan 2021 18:50:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/345244#M59556</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2021-01-03T18:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Contour plot, set X and Y ranges in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/843860#M101759</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;When i&amp;nbsp;Specify Contours e.g. ( Min( -2.5 ), Max( 1.5 ), N( 8 ) ).&lt;BR /&gt;I don't get the scale range legend from min to max values exactly. why is that and can i control it?&lt;/P&gt;&lt;P&gt;Also, the scale is different for every&amp;nbsp;contour (it's by group)&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2025 13:37:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/843860#M101759</guid>
      <dc:creator>AdamChoen</dc:creator>
      <dc:date>2025-02-23T13:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Contour plot, set X and Y ranges in JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/843861#M101760</link>
      <description>&lt;P&gt;It would be helpful if you could supply a sample data table and your script that illustrates the issue.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Feb 2025 14:43:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Contour-plot-set-X-and-Y-ranges-in-JSL/m-p/843861#M101760</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2025-02-23T14:43:25Z</dc:date>
    </item>
  </channel>
</rss>

