<?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: Adressing a variable number of columns as Y-axis in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Adressing-a-variable-number-of-columns-as-Y-axis/m-p/932784#M108932</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

prefix = "NPN";
cols = dt &amp;lt;&amp;lt; Get Column Names("String");

collist = Filter Each({colname}, cols, Starts With(colname, prefix));


gb = Graph Builder(Parallel Axis Merging("Always"));
For Each({colname}, collist,
	Eval(EvalExpr(
		gb &amp;lt;&amp;lt; Add Variable({Expr(NameExpr(AsColumn(dt, colname))), Role("Y"), Position(1)});
	));
);

Write();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 26 Feb 2026 15:09:51 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2026-02-26T15:09:51Z</dc:date>
    <item>
      <title>Adressing a variable number of columns as Y-axis</title>
      <link>https://community.jmp.com/t5/Discussions/Adressing-a-variable-number-of-columns-as-Y-axis/m-p/932773#M108931</link>
      <description>&lt;P&gt;I have a variable number of columns starting with "Alaska " on this follows a number starting from 01 to a variable maximum, e.g. 11.&lt;BR /&gt;I would like to have all these on the same Y column in a graph and the graph should be generated by the script.&lt;BR /&gt;&lt;BR /&gt;I would be interested in the required code for adressing the variable number of Alaskas as Y column in the graph.&lt;/P&gt;
&lt;P&gt;So the script should deliver an equivalent to this:&lt;BR /&gt;Y( :"Alaska 01"n ),&lt;BR /&gt;Y( :"Alaska 02"n, Position(1) ),&lt;BR /&gt;...&lt;BR /&gt;Y( :"Alaska 11"n, Position(1) ),&lt;/P&gt;
&lt;P&gt;It would eb great if someone could help solving this issue.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2026 14:51:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adressing-a-variable-number-of-columns-as-Y-axis/m-p/932773#M108931</guid>
      <dc:creator>Jo_E</dc:creator>
      <dc:date>2026-02-26T14:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adressing a variable number of columns as Y-axis</title>
      <link>https://community.jmp.com/t5/Discussions/Adressing-a-variable-number-of-columns-as-Y-axis/m-p/932784#M108932</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Semiconductor Capability.jmp");

prefix = "NPN";
cols = dt &amp;lt;&amp;lt; Get Column Names("String");

collist = Filter Each({colname}, cols, Starts With(colname, prefix));


gb = Graph Builder(Parallel Axis Merging("Always"));
For Each({colname}, collist,
	Eval(EvalExpr(
		gb &amp;lt;&amp;lt; Add Variable({Expr(NameExpr(AsColumn(dt, colname))), Role("Y"), Position(1)});
	));
);

Write();
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Feb 2026 15:09:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adressing-a-variable-number-of-columns-as-Y-axis/m-p/932784#M108932</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-02-26T15:09:51Z</dc:date>
    </item>
  </channel>
</rss>

