<?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: Common X axis for Graph Builder by loop taking max and min value from a column in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Common-X-axis-for-Graph-Builder-by-loop-taking-max-and-min-value/m-p/301373#M55947</link>
    <description>&lt;P&gt;Did it fail while running against the sample data table?&amp;nbsp; What version of JMP are you using?&lt;/P&gt;
&lt;P&gt;I tested the code on JMP 13 and found that there is an&amp;nbsp;issue with using a variable value for an offset reference in the line&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw[theTitle][axisbox( 1 )] &amp;lt;&amp;lt; paste axis settings;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;so I changed it to force an absolute reference&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;eval(parse("nw[\!""||theTitle||"\!"][axisbox(1)] &amp;lt;&amp;lt; paste axis settings;"));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It now seems to work.&amp;nbsp; I have attached the complete script&lt;/P&gt;</description>
    <pubDate>Sat, 05 Sep 2020 23:33:44 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2020-09-05T23:33:44Z</dc:date>
    <item>
      <title>Common X axis for Graph Builder by loop taking max and min value from a column</title>
      <link>https://community.jmp.com/t5/Discussions/Common-X-axis-for-Graph-Builder-by-loop-taking-max-and-min-value/m-p/301278#M55941</link>
      <description>&lt;P&gt;Good day JMP community, hope you can help me to solve this concern.&lt;/P&gt;&lt;P&gt;We need to show performance in terms of rework rate of a series of defects by tool/day, due to different allocation of tools some period of time, not all tools are utilized the same days, thus charts are giving me different X axis (:DATE INSP).&lt;/P&gt;&lt;P&gt;Attached is a sample raw data, then also attached script for my approach.&lt;/P&gt;&lt;P&gt;First chart created is the overall defect rate by DATE INSP, then I made a loop to create same chart per tool, however as you can see X axis is different for each tool, depending on the utilization, I would like to set a fixed day based on the Max, Min :DATE INSP to make all charts common with the Overall chart.&lt;/P&gt;&lt;P&gt;I guess my error is to get the correct expression for the min and max date, however I do not see any error displayed in the log.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:36:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Common-X-axis-for-Graph-Builder-by-loop-taking-max-and-min-value/m-p/301278#M55941</guid>
      <dc:creator>AndresGlez</dc:creator>
      <dc:date>2023-06-09T23:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Common X axis for Graph Builder by loop taking max and min value from a column</title>
      <link>https://community.jmp.com/t5/Discussions/Common-X-axis-for-Graph-Builder-by-loop-taking-max-and-min-value/m-p/301301#M55942</link>
      <description>&lt;P&gt;I think I got your script to kind of do the min and max setting with just adding in the proper additions to the Substitute function&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Expr( __lay__ ), lay[j],
Expr( __tool__ ), tool[i],
Expr( __mind__ ), mind,
Expr( __maxd__ ), maxd&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have attached this version of the script as SampleScript1&lt;/P&gt;
&lt;P&gt;However, I believe there is a better way, so I have created a second script, SampleScript2, that takes the actual all of the axis settings from the Layer graph and applies them to each of the graphs, so that all of the settings are properly set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 14:06:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Common-X-axis-for-Graph-Builder-by-loop-taking-max-and-min-value/m-p/301301#M55942</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-09-05T14:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Common X axis for Graph Builder by loop taking max and min value from a column</title>
      <link>https://community.jmp.com/t5/Discussions/Common-X-axis-for-Graph-Builder-by-loop-taking-max-and-min-value/m-p/301371#M55945</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;SampleScript1 is working,&amp;nbsp; but as each chart is displayed I got your point why should be better to use SampleScipt2, however I am seeing an error when trying to use SampleScript2 , then it stops only in the first chart of per tool due to the error.&lt;/P&gt;&lt;P&gt;By checking the log this is the error displayed:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cannot subscript Display Box{50914} in access or evaluation of 'nw[theTitle]' , nw[/*###*/theTitle]&lt;/P&gt;&lt;P&gt;In the following script, error marked by /*###*/&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;nw[/*###*/theTitle][axisbox( 1 )] &amp;lt;&amp;lt; paste axis settings;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 22:22:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Common-X-axis-for-Graph-Builder-by-loop-taking-max-and-min-value/m-p/301371#M55945</guid>
      <dc:creator>AndresGlez</dc:creator>
      <dc:date>2020-09-05T22:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Common X axis for Graph Builder by loop taking max and min value from a column</title>
      <link>https://community.jmp.com/t5/Discussions/Common-X-axis-for-Graph-Builder-by-loop-taking-max-and-min-value/m-p/301373#M55947</link>
      <description>&lt;P&gt;Did it fail while running against the sample data table?&amp;nbsp; What version of JMP are you using?&lt;/P&gt;
&lt;P&gt;I tested the code on JMP 13 and found that there is an&amp;nbsp;issue with using a variable value for an offset reference in the line&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw[theTitle][axisbox( 1 )] &amp;lt;&amp;lt; paste axis settings;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;so I changed it to force an absolute reference&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;eval(parse("nw[\!""||theTitle||"\!"][axisbox(1)] &amp;lt;&amp;lt; paste axis settings;"));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It now seems to work.&amp;nbsp; I have attached the complete script&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 23:33:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Common-X-axis-for-Graph-Builder-by-loop-taking-max-and-min-value/m-p/301373#M55947</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-09-05T23:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Common X axis for Graph Builder by loop taking max and min value from a column</title>
      <link>https://community.jmp.com/t5/Discussions/Common-X-axis-for-Graph-Builder-by-loop-taking-max-and-min-value/m-p/301374#M55948</link>
      <description>&lt;P&gt;Yes, I ran the whole script in one.&lt;/P&gt;&lt;P&gt;I have JMP14&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 23:01:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Common-X-axis-for-Graph-Builder-by-loop-taking-max-and-min-value/m-p/301374#M55948</guid>
      <dc:creator>AndresGlez</dc:creator>
      <dc:date>2020-09-05T23:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Common X axis for Graph Builder by loop taking max and min value from a column</title>
      <link>https://community.jmp.com/t5/Discussions/Common-X-axis-for-Graph-Builder-by-loop-taking-max-and-min-value/m-p/301465#M55949</link>
      <description>See the addition I made to my last entry</description>
      <pubDate>Sat, 05 Sep 2020 23:34:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Common-X-axis-for-Graph-Builder-by-loop-taking-max-and-min-value/m-p/301465#M55949</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-09-05T23:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Common X axis for Graph Builder by loop taking max and min value from a column</title>
      <link>https://community.jmp.com/t5/Discussions/Common-X-axis-for-Graph-Builder-by-loop-taking-max-and-min-value/m-p/301466#M55950</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp; this new version works perfectly.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 23:44:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Common-X-axis-for-Graph-Builder-by-loop-taking-max-and-min-value/m-p/301466#M55950</guid>
      <dc:creator>AndresGlez</dc:creator>
      <dc:date>2020-09-05T23:44:03Z</dc:date>
    </item>
  </channel>
</rss>

