<?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: Get label function not working anymore with Get Legend Server in JMP 18.1.1 in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828266#M100998</link>
    <description>&lt;P&gt;One option is to use a bit different syntax&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
gb = Graph Builder(
	Variables(X(:height), Y(:weight), Overlay(:sex), Color(:age)),
	Elements(Points(X, Y, Legend(1)), Smoother(X, Y, Legend(2)))
);
lgnd = gb &amp;lt;&amp;lt; Get Legend Server;
item = lgnd &amp;lt;&amp;lt; Get Legend Item(1, 1);
Show(item &amp;lt;&amp;lt; get label());
item &amp;lt;&amp;lt; Set Properties({Transparency(0.2)});&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Legend Model / Legend Server / Legend Display is one of the (most) annoying things in JMP to work through JSL with and it might break in a bit weird ways between version changes...&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jan 2025 14:12:14 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-01-20T14:12:14Z</dc:date>
    <item>
      <title>Get label function not working anymore with Get Legend Server in JMP 18.1.1</title>
      <link>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828256#M100997</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command below works in JMP 17, and allows me to retrieve the label of a legend. But since JMP 18 it no longer works, and I get an error message instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = Graph Builder(
	Variables(
		X( :height ),
		Y( :weight ),
		Overlay( :sex ),
		Color( :age )
	),
	Elements(
		Points( X, Y, Legend( 1 ) ),
		Smoother( X, Y, Legend( 2 ) )
	)
);
lgnd = gb &amp;lt;&amp;lt; Get Legend Server;
item = (lgnd &amp;lt;&amp;lt; Get Legend Items)[1];

show(item[1] &amp;lt;&amp;lt; get label());
item[1]  &amp;lt;&amp;lt; Set Properties( {Transparency( 1 )} );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SophieCuvillier_0-1737381610819.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72042iB96744AE5D99F16B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SophieCuvillier_0-1737381610819.png" alt="SophieCuvillier_0-1737381610819.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 14:00:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828256#M100997</guid>
      <dc:creator>SophieCuvillier</dc:creator>
      <dc:date>2025-01-20T14:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get label function not working anymore with Get Legend Server in JMP 18.1.1</title>
      <link>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828266#M100998</link>
      <description>&lt;P&gt;One option is to use a bit different syntax&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
gb = Graph Builder(
	Variables(X(:height), Y(:weight), Overlay(:sex), Color(:age)),
	Elements(Points(X, Y, Legend(1)), Smoother(X, Y, Legend(2)))
);
lgnd = gb &amp;lt;&amp;lt; Get Legend Server;
item = lgnd &amp;lt;&amp;lt; Get Legend Item(1, 1);
Show(item &amp;lt;&amp;lt; get label());
item &amp;lt;&amp;lt; Set Properties({Transparency(0.2)});&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Legend Model / Legend Server / Legend Display is one of the (most) annoying things in JMP to work through JSL with and it might break in a bit weird ways between version changes...&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 14:12:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828266#M100998</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-01-20T14:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Get label function not working anymore with Get Legend Server in JMP 18.1.1</title>
      <link>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828269#M100999</link>
      <description>&lt;P&gt;Scripting Index does also offer two options (search for Get Label). Get Legend Item doesn't have documentation so it might be safer to use Legend Display + &amp;lt;&amp;lt; Get Item&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using Legend Display&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
gb = Graph Builder(
	Variables(X(:height), Y(:weight), Overlay(:sex), Color(:age)),
	Elements(Points(X, Y, Legend(1)), Smoother(X, Y, Legend(2)))
);
lgnd = gb &amp;lt;&amp;lt; Get Legend Display;
item = lgnd &amp;lt;&amp;lt; Get Item(2, 1);
Print(item &amp;lt;&amp;lt; Get Label);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1737382536188.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72043iB857BA4427EAD8BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_0-1737382536188.png" alt="jthi_0-1737382536188.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Using Legend Server&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1737382545378.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72044i7731EF2BB6172FB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_1-1737382545378.png" alt="jthi_1-1737382545378.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/Big Class.jmp");
gb = Graph Builder(
	Variables(X(:height), Y(:weight), Overlay(:sex), Color(:age)),
	Elements(Points(X, Y, Legend(1)), Smoother(X, Y, Legend(2)))
);
server = gb &amp;lt;&amp;lt; Get Legend Server;
item = server &amp;lt;&amp;lt; Get Legend Item(2, 1);
Print(item &amp;lt;&amp;lt; Get Label);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jan 2025 14:16:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828269#M100999</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-01-20T14:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get label function not working anymore with Get Legend Server in JMP 18.1.1</title>
      <link>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828273#M101002</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank your for your answer, your change works.&amp;nbsp;But I'm having trouble understanding what the function arguments (A,B) are and where to find them in Get Legend Item(A,B). Basically, I want to loop through my list of items and make transparent those that have a specific label. Naively, I was using Get Legend Item(i, 1), thinking that it was the i-th item, but it's obviously the ID model and I'm getting a bit confused.&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="SophieCuvillier_0-1737385372582.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72045i0EB2838C75480B55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SophieCuvillier_0-1737385372582.png" alt="SophieCuvillier_0-1737385372582.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 15:05:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828273#M101002</guid>
      <dc:creator>SophieCuvillier</dc:creator>
      <dc:date>2025-01-20T15:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get label function not working anymore with Get Legend Server in JMP 18.1.1</title>
      <link>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828274#M101003</link>
      <description>&lt;P&gt;I think in that case you can use &amp;lt;&amp;lt; Get Items (this might have had a bug with some earlier JMP18 version than 18.1.1 if you were to use For Each loop but seems to work in 18.1.1)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
gb = dt &amp;lt;&amp;lt; Graph Builder(
	Variables(X(:height), Y(:weight), Overlay(:sex), Color(:age)),
	Elements(Points(X, Y, Legend(1)), Smoother(X, Y, Legend(2)))
);
lgnd = gb &amp;lt;&amp;lt; Get Legend Display;
items = lgnd &amp;lt;&amp;lt; Get Items;
For Each({item}, items,
	show(item &amp;lt;&amp;lt; get label);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jan 2025 15:20:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828274#M101003</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-01-20T15:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get label function not working anymore with Get Legend Server in JMP 18.1.1</title>
      <link>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828834#M101083</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for your answer ! That doesn't solve my problem, but I haven't explained the context sufficiently. More details below.&amp;nbsp;&lt;SPAN&gt;I have a script that allows me to see how my batches evolve over time. This script also generates a listbox with the list of my batches. If I click on a value, it will only display the evolution of this batch.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SophieCuvillier_0-1737628635073.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72176i91AA5D6B0F02860C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SophieCuvillier_0-1737628635073.png" alt="SophieCuvillier_0-1737628635073.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;&lt;U&gt;After clicking on one or several batches - expected results:&lt;/U&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SophieCuvillier_1-1737628660827.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72177iE700EB71F3A87942/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SophieCuvillier_1-1737628660827.png" alt="SophieCuvillier_1-1737628660827.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And that's where we come back to the part that crashes and that you helped me with. But the proposed fix, for some reason that I don't know, makes the legend disappear right away, but not the lines in the graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SophieCuvillier_3-1737628869938.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72179i784C1F5118023DA9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SophieCuvillier_3-1737628869938.png" alt="SophieCuvillier_3-1737628869938.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 13:59:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828834#M101083</guid>
      <dc:creator>SophieCuvillier</dc:creator>
      <dc:date>2025-01-23T13:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get label function not working anymore with Get Legend Server in JMP 18.1.1</title>
      <link>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828847#M101085</link>
      <description>&lt;P&gt;I will take a look this evening my time (currently 13:00).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could something like this help for now&amp;nbsp;&lt;LI-MESSAGE title="Column Quick Swapper - easily change multiple Y and X-axis columns in Graph Builder" uid="724616" url="https://community.jmp.com/t5/JMP-Add-Ins/Column-Quick-Swapper-easily-change-multiple-Y-and-X-axis-columns/m-p/724616#U724616" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;I did notice that it doesn't work if you have transform column, so you would have to move your X axis to table column but after that it seems to work&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1737630032827.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72180i8969972BE08D3964/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1737630032827.png" alt="jthi_0-1737630032827.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1737630040209.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/72181iBE517CE98E5942F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1737630040209.png" alt="jthi_1-1737630040209.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;(The add-in doesn't manipulate Legend it manipulates Y-axis variables) there is also wish list item in hopes for JMP to support that type of functionalities natively&amp;nbsp;&lt;LI-MESSAGE title="New filter &amp;amp;quot;Column Filter&amp;amp;quot; a combination of Local Data Filter and Column Switcher" uid="724583" url="https://community.jmp.com/t5/JMP-Wish-List/New-filter-quot-Column-Filter-quot-a-combination-of-Local-Data/m-p/724583#U724583" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 11:03:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828847#M101085</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-01-23T11:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Get label function not working anymore with Get Legend Server in JMP 18.1.1</title>
      <link>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828851#M101089</link>
      <description>&lt;P&gt;Seems to be a mess, but maybe this gives some ideas&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

cols = {"wx0b5t", "wx0bgw", "wx0c0y", "wx0c0z", "wx0cfl", "wx0cfn", "WX0AZN", "WX0c03", "WX0C0X", "WX0CFM", "WX0cow"};

dt = Open("$DOWNLOADS/Guardband table_for_reprex2.jmp");

gb = dt &amp;lt;&amp;lt; Graph Builder(
	Transform Column("Row", Formula(Row())),
	Size(1149, 561),
	Show Control Panel(0),
	Variables(
		X(:Row),
		Y(:wx0b5t),
		Y(:"OOC - wx0b5t"n, Position(1)),
		Y(:wx0bgw, Position(1)),
		Y(:"OOC - wx0bgw"n, Position(1)),
		Y(:wx0c0y, Position(1)),
		Y(:"OOC - wx0c0y"n, Position(1)),
		Y(:wx0c0z, Position(1)),
		Y(:"OOC - wx0c0z"n, Position(1)),
		Y(:wx0cfl, Position(1)),
		Y(:"OOC - wx0cfl"n, Position(1)),
		Y(:wx0cfn, Position(1)),
		Y(:"OOC - wx0cfn"n, Position(1)),
		Y(:WX0AZN, Position(1)),
		Y(:"OOC - WX0AZN"n, Position(1)),
		Y(:WX0c03, Position(1)),
		Y(:"OOC - WX0c03"n, Position(1)),
		Y(:WX0C0X, Position(1)),
		Y(:"OOC - WX0C0X"n, Position(1)),
		Y(:WX0CFM, Position(1)),
		Y(:"OOC - WX0CFM"n, Position(1)),
		Y(:WX0cow, Position(1)),
		Y(:"OOC - WX0cow"n, Position(1))
	),
	Elements(
		Line(
			X,
			Y(1),
			Y(2),
			Y(3),
			Y(4),
			Y(5),
			Y(6),
			Y(7),
			Y(8),
			Y(9),
			Y(10),
			Y(11),
			Y(12),
			Y(13),
			Y(14),
			Y(15),
			Y(16),
			Y(17),
			Y(18),
			Y(19),
			Y(20),
			Y(21),
			Y(22),
			Legend(16),
			Error Interval("None"),
			Missing Values("No Connection")
		)
	),
	SendToReport(
		Dispatch({}, "Row", ScaleBox, {Min(0), Max(1136), Inc(10), Minor Ticks(4), Label Row(Label Orientation("Angled"))}),
		Dispatch({}, "400", ScaleBox,
			{Legend Model(
				16,
				Properties(0, {Line Width(1)}, Item ID("wx0b5t", 1)),
				Properties(1, {Line Color(3), Line Width(1)}, Item ID("OOC - wx0b5t", 1)),
				Properties(2, {Line Width(1)}, Item ID("wx0bgw", 1)),
				Properties(3, {Line Color(3), Line Width(1)}, Item ID("OOC - wx0bgw", 1)),
				Properties(4, {Line Width(1)}, Item ID("wx0c0y", 1)),
				Properties(5, {Line Color(3), Line Width(1)}, Item ID("OOC - wx0c0y", 1)),
				Properties(6, {Line Width(1)}, Item ID("wx0c0z", 1)),
				Properties(7, {Line Color(3), Line Width(1)}, Item ID("OOC - wx0c0z", 1)),
				Properties(8, {Line Width(1)}, Item ID("wx0cfl", 1)),
				Properties(9, {Line Color(3), Line Width(1)}, Item ID("OOC - wx0cfl", 1)),
				Properties(10, {Line Width(1)}, Item ID("wx0cfn", 1)),
				Properties(11, {Line Color(3), Line Width(1)}, Item ID("OOC - wx0cfn", 1)),
				Properties(12, {Line Width(1)}, Item ID("WX0AZN", 1)),
				Properties(13, {Line Color(3), Line Width(1)}, Item ID("OOC - WX0AZN", 1)),
				Properties(14, {Line Width(1)}, Item ID("WX0c03", 1)),
				Properties(15, {Line Color(3), Line Width(1)}, Item ID("OOC - WX0c03", 1)),
				Properties(16, {Line Width(1)}, Item ID("WX0C0X", 1)),
				Properties(17, {Line Color(3), Line Width(1)}, Item ID("OOC - WX0C0X", 1)),
				Properties(18, {Line Width(1)}, Item ID("WX0CFM", 1)),
				Properties(19, {Line Color(3), Line Width(1)}, Item ID("OOC - WX0CFM", 1)),
				Properties(20, {Line Width(1)}, Item ID("WX0cow", 1)),
				Properties(21, {Line Color(3), Line Width(1)}, Item ID("OOC - WX0cow", 1))
			)}
		),
		Dispatch({}, "graph title", TextEditBox, {Set Text("Reproducible example")}),
		Dispatch({}, "X title", TextEditBox, {Set Text("Time [min]")}),
		Dispatch({}, "Y title", TextEditBox, {Set Text("Y")}),
		Dispatch({}, "Graph Builder", FrameBox, {Background Color(-14605016), Marker Size(0), Marker Drawing Mode("Normal")}),
		Dispatch({}, "400", LegendBox,
			{Legend Position({16, [0, -1, 1, -1, 2, -1, 3, -1, 4, -1, 5, -1, 6, -1, 7, -1, 8, -1, 9, -1, 10, -1]})}
		)
	)
);

s = gb &amp;lt;&amp;lt; get script;
l_model = Try(Arg(Extract Expr(s, Legend(Wild()))), .);


hide_column_line = function({gb, cols_to_show}, {Default Local},
	l_server = gb &amp;lt;&amp;lt; Get Legend Server;
	server_items = (lgnd &amp;lt;&amp;lt; Get Legend Items)[1];
	
	l_display = gb &amp;lt;&amp;lt; Get Legend Display;
	display_items = l_display &amp;lt;&amp;lt; get items;
	
	For(i = 1, i &amp;lt;= N Items(server_items), i++,
		item = Eval(EvalExpr(l_server &amp;lt;&amp;lt; Get Legend Item(Expr(l_model), Expr(i))));
		If(!Contains(cols_to_show, item &amp;lt;&amp;lt; Get Label),
			item &amp;lt;&amp;lt; Set Properties({Transparency(0)});
			display_items[i] &amp;lt;&amp;lt; Set Visible(0);
		,
			item &amp;lt;&amp;lt; Set Properties({Transparency(1)});
			display_items[i] &amp;lt;&amp;lt; Set Visible(1);
		);
	);
);

wait(1);
hide_column_line(gb, cols[1]);
wait(1);
hide_column_line(gb, cols[3::6]);
wait(1);
hide_column_line(gb, cols);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Jan 2025 13:43:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828851#M101089</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-01-23T13:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get label function not working anymore with Get Legend Server in JMP 18.1.1</title>
      <link>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828852#M101090</link>
      <description>&lt;P&gt;Thank you very much !!! That works now !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 13:58:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Get-label-function-not-working-anymore-with-Get-Legend-Server-in/m-p/828852#M101090</guid>
      <dc:creator>SophieCuvillier</dc:creator>
      <dc:date>2025-01-23T13:58:16Z</dc:date>
    </item>
  </channel>
</rss>

