<?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 do I get the setting for Dec in &amp;quot;Fixed Dec&amp;quot; format in Axis Column Property?? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-setting-for-Dec-in-quot-Fixed-Dec-quot-format/m-p/762281#M94132</link>
    <description>&lt;P&gt;Are you looking for axis scale format or column format? This maybe gives you some idea&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");
col_format = Column(dt, "height") &amp;lt;&amp;lt; Get Format;

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(528, 456),
	Show Control Panel(0),
	Variables(X(:weight), Y(:height), Overlay(:sex)),
	Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11)))
);

ab_format = Report(gb)[AxisBox(1)] &amp;lt;&amp;lt; get format;

show(col_format, ab_format)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 03 Jun 2024 13:01:08 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-06-03T13:01:08Z</dc:date>
    <item>
      <title>How do I get the setting for Dec in "Fixed Dec" format in Axis Column Property??</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-setting-for-Dec-in-quot-Fixed-Dec-quot-format/m-p/762266#M94129</link>
      <description>&lt;P&gt;I need to get the setting for Dec in "Fixed Dec" format in Axis Column property. I can get similar setting, e.g. Max, Min etc by running "get property("Axis")", but cannot get the Dec number. Here is one example of the Axis property info. In this case, I need to get "0", but only "Fixed Dec" is seen, not "5" &amp;amp; "0".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Probably we can get it as we like by having proper "character function" like Substr etc, but I suppose we can have it simpler way like we do for the number for "Max", "11" in this case..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry if my question above is unclear, but thank you for your support!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{Format( "Fixed Dec", 5, 0 ), Min( -1 ), Max( 11 ), Inc( 1 ), Minor Ticks( 4 )}&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 12:42:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-the-setting-for-Dec-in-quot-Fixed-Dec-quot-format/m-p/762266#M94129</guid>
      <dc:creator>WakuWakuGoku</dc:creator>
      <dc:date>2024-06-03T12:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the setting for Dec in "Fixed Dec" format in Axis Column Property??</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-setting-for-Dec-in-quot-Fixed-Dec-quot-format/m-p/762281#M94132</link>
      <description>&lt;P&gt;Are you looking for axis scale format or column format? This maybe gives you some idea&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");
col_format = Column(dt, "height") &amp;lt;&amp;lt; Get Format;

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Size(528, 456),
	Show Control Panel(0),
	Variables(X(:weight), Y(:height), Overlay(:sex)),
	Elements(Points(X, Y, Legend(9)), Line Of Fit(X, Y, Legend(11)))
);

ab_format = Report(gb)[AxisBox(1)] &amp;lt;&amp;lt; get format;

show(col_format, ab_format)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Jun 2024 13:01:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-the-setting-for-Dec-in-quot-Fixed-Dec-quot-format/m-p/762281#M94132</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-06-03T13:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the setting for Dec in "Fixed Dec" format in Axis Column Property??</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-setting-for-Dec-in-quot-Fixed-Dec-quot-format/m-p/762294#M94138</link>
      <description>&lt;P&gt;Thank you for your reply and sorry for my unclear question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it's not exactly the same as the column format, but more like ab format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to have several graphs whose scales are defined in the column properties of "Axis" we can add like we can add "Spec Limits" in the column property. I understood that "Axis" properties is used for changing default axis settng for graphs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope my comment and what i would like to do is clear enough... I am so sorry..&lt;BR /&gt;&lt;BR /&gt;Thank you very much for you help!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 13:21:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-the-setting-for-Dec-in-quot-Fixed-Dec-quot-format/m-p/762294#M94138</guid>
      <dc:creator>WakuWakuGoku</dc:creator>
      <dc:date>2024-06-03T13:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get the setting for Dec in "Fixed Dec" format in Axis Column Property??</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-the-setting-for-Dec-in-quot-Fixed-Dec-quot-format/m-p/762304#M94141</link>
      <description>&lt;P&gt;Ah.. I think you running into the problem (or feature) where if you are using "defaults" it won't show you anything. In this case it will work because I set them by script, but if you clear the property and set it as "default" by hand it will return empty list&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1); 

dt = open("$SAMPLE_DATA/Big Class.jmp");
Column(dt, "weight") &amp;lt;&amp;lt; Set Property("Axis", {Format("Fixed Dec", 12, 0)});
Column(dt, "height") &amp;lt;&amp;lt; Set Property("Axis", {Format("Fixed Dec", 12, 1)});

prop1 = Column(dt, "weight") &amp;lt;&amp;lt; Get Property("Axis");
prop2 = Column(dt, "height") &amp;lt;&amp;lt; Get Property("Axis");

show(prop1, prop2);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So one option is to add some sort of a check for that (if the property isn't set at all it should be Empty() not empty list) and if that matches use the defaults&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(Type(prop) == "List",
	If(N Items(prop) == 0,
		cur_prop = {Format("Fixed Dec", 12, 0)};
	);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Jun 2024 13:35:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-the-setting-for-Dec-in-quot-Fixed-Dec-quot-format/m-p/762304#M94141</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-06-03T13:35:39Z</dc:date>
    </item>
  </channel>
</rss>

