<?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 pass values to Min and Max for Axis via Set Property? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-pass-values-to-Min-and-Max-for-Axis-via-Set-Property/m-p/632829#M83123</link>
    <description>&lt;P&gt;Your original script supplied variables in the arguments to the Set Property message. As I said, JMP does not evaluate them in this case. This allows you to establish expressions as the parameters in a column property. You want a constant value for the parameter, so you must convert the variable to a literal value in place of the variable. Working from the inside out, I create a template of the desired expression with placeholders (i.e., &lt;STRONG&gt;lll&lt;/STRONG&gt; and &lt;STRONG&gt;uuu&lt;/STRONG&gt;) for the literal values. I substitute the literal values by evaluating the variables (i.e., &lt;STRONG&gt;ll&lt;/STRONG&gt; and &lt;STRONG&gt;ul&lt;/STRONG&gt;) for the placeholders. I finally evaluate the resulting expression. You can see this work by selecting the Substitute() function and evaluating it.&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2023 15:13:55 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2023-05-18T15:13:55Z</dc:date>
    <item>
      <title>How to pass values to Min and Max for Axis via Set Property?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-pass-values-to-Min-and-Max-for-Axis-via-Set-Property/m-p/632735#M83115</link>
      <description>&lt;P&gt;The following works for myCol in dt. myCol is Numeric and Continuous&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here (1);
dt = Current Data Table();
dt:myCol&amp;lt;&amp;lt; Set Property("Axis", {Min(0.02), Max(10.05), Inc( 0.01 ), Minor Ticks( 1 )});&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However the following results in a JMP (v 16.2.0) crash. Where am I going wrong?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ll = 0.02;
ul = 10.05; 
dt:myCol&amp;lt;&amp;lt; Set Property("Axis",	{Min(ll), Max(ul), Inc( 0.01 ), Minor Ticks( 1 )});&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Checking as below shows the issue (see attached when trying to check properties of mCol), but I am out of ideas on how to fix this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;AxLim1 = dt:myCol &amp;lt;&amp;lt; Get Property ("Axis"); show (AxLim1);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;reports&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;AxLim1 = {Min(ll), Max(ul), Inc(0.01), Minor Ticks(1)};&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I think this is something simple which I am missing. Any direction would be very helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:10:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-pass-values-to-Min-and-Max-for-Axis-via-Set-Property/m-p/632735#M83115</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-06-09T16:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass values to Min and Max for Axis via Set Property?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-pass-values-to-Min-and-Max-for-Axis-via-Set-Property/m-p/632769#M83118</link>
      <description>&lt;P&gt;JMP is not evaluating the variables. Try this work-around:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;ll = 0.02;
ul = 10.05;

Eval(
	Substitute(
		Expr( dt:myCol &amp;lt;&amp;lt; Set Property( "Axis", {Min(lll), Max(uuu), Inc( 0.01 ), Minor Ticks( 1 )}) ),
		Expr( lll ), ll,
		Expr( uuu ), ul
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 May 2023 13:45:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-pass-values-to-Min-and-Max-for-Axis-via-Set-Property/m-p/632769#M83118</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-05-18T13:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass values to Min and Max for Axis via Set Property?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-pass-values-to-Min-and-Max-for-Axis-via-Set-Property/m-p/632787#M83120</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. The work around seems to work. Could I have some explanation on of your script steps/functionality?&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 14:19:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-pass-values-to-Min-and-Max-for-Axis-via-Set-Property/m-p/632787#M83120</guid>
      <dc:creator>Neo</dc:creator>
      <dc:date>2023-05-18T14:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass values to Min and Max for Axis via Set Property?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-pass-values-to-Min-and-Max-for-Axis-via-Set-Property/m-p/632829#M83123</link>
      <description>&lt;P&gt;Your original script supplied variables in the arguments to the Set Property message. As I said, JMP does not evaluate them in this case. This allows you to establish expressions as the parameters in a column property. You want a constant value for the parameter, so you must convert the variable to a literal value in place of the variable. Working from the inside out, I create a template of the desired expression with placeholders (i.e., &lt;STRONG&gt;lll&lt;/STRONG&gt; and &lt;STRONG&gt;uuu&lt;/STRONG&gt;) for the literal values. I substitute the literal values by evaluating the variables (i.e., &lt;STRONG&gt;ll&lt;/STRONG&gt; and &lt;STRONG&gt;ul&lt;/STRONG&gt;) for the placeholders. I finally evaluate the resulting expression. You can see this work by selecting the Substitute() function and evaluating it.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 15:13:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-pass-values-to-Min-and-Max-for-Axis-via-Set-Property/m-p/632829#M83123</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-05-18T15:13:55Z</dc:date>
    </item>
  </channel>
</rss>

