<?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 How to edit panel box components (lables) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-edit-panel-box-components-lables/m-p/508007#M73700</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In a script I wrote, I'm using a panel box showing two X-axis options which are long strings.&lt;/P&gt;&lt;P&gt;Is there an efficient way to change the display name for more convenience?&lt;/P&gt;&lt;P&gt;Code below is an example.&lt;/P&gt;&lt;P&gt;X_list hold all string representing column names I wish to present to the X axis.&lt;/P&gt;&lt;P&gt;Then, using panelbox to show user options.&lt;/P&gt;&lt;P&gt;Finally, plotting bivariate of user's choice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I asked for help regarding X axis label, but it is best to get tips for y-axis labels too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x_list = {"item1","item2"};

panelbox("x-axis", xRadio = radio box(x_list,updatePlot()));

Bivariate( Y( y_list[yRadio&amp;lt;&amp;lt;get] ),  
		X( x_list[xRadio&amp;lt;&amp;lt;get] ), ...)


&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:24:54 GMT</pubDate>
    <dc:creator>Tomer9w</dc:creator>
    <dc:date>2023-06-11T11:24:54Z</dc:date>
    <item>
      <title>How to edit panel box components (lables)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-edit-panel-box-components-lables/m-p/508007#M73700</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;In a script I wrote, I'm using a panel box showing two X-axis options which are long strings.&lt;/P&gt;&lt;P&gt;Is there an efficient way to change the display name for more convenience?&lt;/P&gt;&lt;P&gt;Code below is an example.&lt;/P&gt;&lt;P&gt;X_list hold all string representing column names I wish to present to the X axis.&lt;/P&gt;&lt;P&gt;Then, using panelbox to show user options.&lt;/P&gt;&lt;P&gt;Finally, plotting bivariate of user's choice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I asked for help regarding X axis label, but it is best to get tips for y-axis labels too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x_list = {"item1","item2"};

panelbox("x-axis", xRadio = radio box(x_list,updatePlot()));

Bivariate( Y( y_list[yRadio&amp;lt;&amp;lt;get] ),  
		X( x_list[xRadio&amp;lt;&amp;lt;get] ), ...)


&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:24:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-edit-panel-box-components-lables/m-p/508007#M73700</guid>
      <dc:creator>Tomer9w</dc:creator>
      <dc:date>2023-06-11T11:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit panel box components (lables)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-edit-panel-box-components-lables/m-p/508125#M73703</link>
      <description>&lt;P&gt;Here's an approach that will give you some ideas.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = open("$sample_data\Car Physical Data.jmp");

x_list = dt &amp;lt;&amp;lt; get column names(numeric, "string");
y_list = x_list;

updateplot = expr(
	dt &amp;lt;&amp;lt; Bivariate( Y( eval(ycol) ), X( eval(xcol) ));
);

nw = new window("Choose",
	panelbox("x-axis", 
		xRadio = radio box(x_list, 
			xcol = x_list[xradio &amp;lt;&amp;lt; get];
			ycol = y_list[yradio &amp;lt;&amp;lt; get];
			updateplot;),
	),
	panelbox("y-axis", 
		yRadio = radio box(y_list,  
			xcol = x_list[xradio &amp;lt;&amp;lt; get];
			ycol = y_list[yradio &amp;lt;&amp;lt; get];
			updateplot;),
	),
	button box("OK", nw &amp;lt;&amp;lt; close window),
);

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Jun 2022 17:55:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-edit-panel-box-components-lables/m-p/508125#M73703</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2022-06-13T17:55:56Z</dc:date>
    </item>
  </channel>
</rss>

