<?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 Hiding 'Where (...)' textboxes in graphics using JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Hiding-Where-textboxes-in-graphics-using-JSL/m-p/306903#M56201</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to hide/remove the line of text with Where(col="x") as shown in the attached image using scripting? I'm new to JMP and haven't quite figured out all the ins and outs yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a set of stacked data where all of the metabolites/count labels (pH, osmo, etc) are in one column and all of the corresponding data is in another.&amp;nbsp;In my case, the where() textbox is irrelevant since I've renamed my figure titles with the same label. I can manually hide the text box temporarily by right clicking when I view the image in JMP, but aren't sure how to hide it using JSL and keep it hidden when I export to html.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example script for one of my graphics:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
			Size( 531, 464 ),
			Show Control Panel( 0 ),
			Variables(
				X( :Step ),
				Y( :Name( "BR Metabolite/Count Data" ) ),
				Overlay( :Run )
			),
			Elements(
				Line( X, Y, Legend( 1 ) ),
				Points( X, Y, Legend( 2 ), Jitter Limit( 0.2018 ) )
			),
			Where( :Name( "Metabolite/Count" ) == "pH" ),
			SendToReport(
				Dispatch(
					{},
					"Graph Builder",
					OutlineBox,
					{Set Title( "pH" ), Image Export Display( Normal )}
				),
				Dispatch(
					{},
					"graph title",
					TextEditBox,
					{Set Text( "pH vs. Step" )}
				),
				Dispatch( {}, "Y title", TextEditBox, {Set Text( "pH" )} )
			)
		);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you for the help!&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 11:05:48 GMT</pubDate>
    <dc:creator>BJensen</dc:creator>
    <dc:date>2023-06-11T11:05:48Z</dc:date>
    <item>
      <title>Hiding 'Where (...)' textboxes in graphics using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hiding-Where-textboxes-in-graphics-using-JSL/m-p/306903#M56201</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to hide/remove the line of text with Where(col="x") as shown in the attached image using scripting? I'm new to JMP and haven't quite figured out all the ins and outs yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a set of stacked data where all of the metabolites/count labels (pH, osmo, etc) are in one column and all of the corresponding data is in another.&amp;nbsp;In my case, the where() textbox is irrelevant since I've renamed my figure titles with the same label. I can manually hide the text box temporarily by right clicking when I view the image in JMP, but aren't sure how to hide it using JSL and keep it hidden when I export to html.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example script for one of my graphics:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
			Size( 531, 464 ),
			Show Control Panel( 0 ),
			Variables(
				X( :Step ),
				Y( :Name( "BR Metabolite/Count Data" ) ),
				Overlay( :Run )
			),
			Elements(
				Line( X, Y, Legend( 1 ) ),
				Points( X, Y, Legend( 2 ), Jitter Limit( 0.2018 ) )
			),
			Where( :Name( "Metabolite/Count" ) == "pH" ),
			SendToReport(
				Dispatch(
					{},
					"Graph Builder",
					OutlineBox,
					{Set Title( "pH" ), Image Export Display( Normal )}
				),
				Dispatch(
					{},
					"graph title",
					TextEditBox,
					{Set Text( "pH vs. Step" )}
				),
				Dispatch( {}, "Y title", TextEditBox, {Set Text( "pH" )} )
			)
		);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you for the help!&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:05:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hiding-Where-textboxes-in-graphics-using-JSL/m-p/306903#M56201</guid>
      <dc:creator>BJensen</dc:creator>
      <dc:date>2023-06-11T11:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding 'Where (...)' textboxes in graphics using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hiding-Where-textboxes-in-graphics-using-JSL/m-p/306926#M56205</link>
      <description>&lt;P&gt;This should work&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb = Graph Builder(
	Size( 531, 464 ),
	Show Control Panel( 0 ),
	Variables(
		X( :Step ),
		Y( :Name( "BR Metabolite/Count Data" ) ),
		Overlay( :Run )
	),
	Elements(
		Line( X, Y, Legend( 1 ) ),
		Points( X, Y, Legend( 2 ), Jitter Limit( 0.2018 ) )
	),
	Where( :Name( "Metabolite/Count" ) == "pH" ),
	SendToReport(
		Dispatch(
			{},
			"Graph Builder",
			OutlineBox,
			{Set Title( "pH" ), Image Export Display( Normal )}
		),
		Dispatch(
			{},
			"graph title",
			TextEditBox,
			{Set Text( "pH vs. Step" )}
		),
		Dispatch( {}, "Y title", TextEditBox, {Set Text( "pH" )} )
	)
);

(Report( gb ) &amp;lt;&amp;lt; top parent)[Text Box( 1 )] &amp;lt;&amp;lt; delete;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Sep 2020 19:07:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hiding-Where-textboxes-in-graphics-using-JSL/m-p/306926#M56205</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-09-14T19:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding 'Where (...)' textboxes in graphics using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hiding-Where-textboxes-in-graphics-using-JSL/m-p/307821#M56219</link>
      <description>&lt;P&gt;The use of the &amp;lt;&amp;lt; Delete message in this case will affect the change that you want probably without repercussions. A safer change is available through the &amp;lt;&amp;lt; Visibility message. Use the Collapse argument to make it invisible and not save its space in the window.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 12:07:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hiding-Where-textboxes-in-graphics-using-JSL/m-p/307821#M56219</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-09-15T12:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding 'Where (...)' textboxes in graphics using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hiding-Where-textboxes-in-graphics-using-JSL/m-p/307825#M56222</link>
      <description>&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works great for a single figure, but isn't adding any of the modified figures to my vlistbox now. It always spits out a blank box when I try to combine them. I also tried &amp;lt;&amp;lt;visibility(1) and had the same results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(Report( gb1 ) &amp;lt;&amp;lt; top parent)[Text Box( 1 )] &amp;lt;&amp;lt; delete;		
(Report( gb2 ) &amp;lt;&amp;lt; top parent)[Text Box( 1 )] &amp;lt;&amp;lt; delete;		
(Report( gb3 ) &amp;lt;&amp;lt; top parent)[Text Box( 1 )] &amp;lt;&amp;lt; delete;		
(Report( gb4 ) &amp;lt;&amp;lt; top parent)[Text Box( 1 )] &amp;lt;&amp;lt; delete;		
//(Report( gb5 ) &amp;lt;&amp;lt; top parent)[Text Box( 1 )] &amp;lt;&amp;lt; delete;		
(Report( gb6 ) &amp;lt;&amp;lt; top parent)[Text Box( 1 )] &amp;lt;&amp;lt; delete;		
(Report( gb7 ) &amp;lt;&amp;lt; top parent)[Text Box( 1 )] &amp;lt;&amp;lt; delete;		
(Report( gb8 ) &amp;lt;&amp;lt; top parent)[Text Box( 1 )] &amp;lt;&amp;lt; delete;		
(Report( gb9 ) &amp;lt;&amp;lt; top parent)[Text Box( 1 )] &amp;lt;&amp;lt; delete;		
(Report( gb10 ) &amp;lt;&amp;lt; top parent)[Text Box( 1 )] &amp;lt;&amp;lt; delete;

fig3 = expr( 
New Window( "Production Bioreactor - Metabolites/Counts",
	V List Box(gb1,gb2,gb3,gb4, gb6, gb7,gb8,gb9,gb10,gb11,gb12,gb13
	)
));

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Sep 2020 13:55:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hiding-Where-textboxes-in-graphics-using-JSL/m-p/307825#M56222</guid>
      <dc:creator>BJensen</dc:creator>
      <dc:date>2020-09-15T13:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding 'Where (...)' textboxes in graphics using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hiding-Where-textboxes-in-graphics-using-JSL/m-p/307828#M56225</link>
      <description>&lt;P&gt;Without seeing your full script, it is pretty hard to determine where the issue is.&amp;nbsp; My other question is, why are you doing all of the deletes at a single point in your code, rather than having the delete code at the point where the graph is being produced?&amp;nbsp; Or are you using a By clause in your code, which changes the Display Tree structure to a completely different hierarchy from the single stand alone graph.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 14:36:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hiding-Where-textboxes-in-graphics-using-JSL/m-p/307828#M56225</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-09-15T14:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding 'Where (...)' textboxes in graphics using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hiding-Where-textboxes-in-graphics-using-JSL/m-p/307829#M56226</link>
      <description>&lt;P&gt;No worries. Thanks for your help regardless. I'll mess around and see if I can get something to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like I said, I'm new to JMP so not everything is streamlined very efficiently at this point. I was originally making all of my graphics directly inside of my vlistbox, but wasn't sure how to incorporate your line of code into that. So I pulled all my figures out of the vlistbox and added all of the delete lines separately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using the By clause originally but ran into&amp;nbsp;several issues adding the report to a web report. So I instead of save by-group script to clipboard, I&amp;nbsp;used save script to&amp;nbsp;scriptwindow (all objects) like example below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Graph Builder(
	Variables( X( :Passage Number ), Y( :Preculture Data ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	By( :Name( "Metabolite/Count" ) )
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New Window( "PCstack - Graph Builder",
	V List Box(
		Graph Builder(
			Variables( X( :Passage Number ), Y( :Preculture Data ) ),
			Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
			Where( :Name( "Metabolite/Count" ) == "VCD at Split" )
		),
		Graph Builder(
			Variables( X( :Passage Number ), Y( :Preculture Data ) ),
			Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
			Where( :Name( "Metabolite/Count" ) == "Viability at Split" )
		),
		Graph Builder(
			Variables( X( :Passage Number ), Y( :Preculture Data ) ),
			Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
			Where( :Name( "Metabolite/Count" ) == "VCD at Inoc" )
		),
		Graph Builder(
			Variables( X( :Passage Number ), Y( :Preculture Data ) ),
			Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
			Where( :Name( "Metabolite/Count" ) == "PDL" )
		),
		Graph Builder(
			Variables( X( :Passage Number ), Y( :Preculture Data ) ),
			Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
			Where( :Name( "Metabolite/Count" ) == "PDT(h)" )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Sep 2020 14:55:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hiding-Where-textboxes-in-graphics-using-JSL/m-p/307829#M56226</guid>
      <dc:creator>BJensen</dc:creator>
      <dc:date>2020-09-15T14:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding 'Where (...)' textboxes in graphics using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hiding-Where-textboxes-in-graphics-using-JSL/m-p/307831#M56228</link>
      <description>&lt;P&gt;Here is one way of handling it&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

New Window( "big class - Graph Builder", vlb = V List Box() );

gb1 = Graph Builder(
	invisible,
	Size( 528, 456 ),
	Show Control Panel( 0 ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	Where( :age == 12 )
);
(Report( gb1 ) &amp;lt;&amp;lt; top parent)[Text Box( 1 )] &amp;lt;&amp;lt; delete;
vlb &amp;lt;&amp;lt; append( Report( gb1 ) );

gb2 = Graph Builder(
	invisible,
	Variables( X( :weight ), Y( :height ) ),
	Show Control Panel( 0 ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	Where( :age == 13 )
);
(Report( gb2 ) &amp;lt;&amp;lt; top parent)[Text Box( 1 )] &amp;lt;&amp;lt; delete;
vlb &amp;lt;&amp;lt; append( Report( gb2 ) );
gb3 = Graph Builder(
	invisible,
	Variables( X( :weight ), Y( :height ) ),
	Show Control Panel( 0 ),
	Elements( Points( X, Y, Legend( 1 ) ), Smoother( X, Y, Legend( 2 ) ) ),
	Where( :age == 14 )
);
(Report( gb2 ) &amp;lt;&amp;lt; top parent)[Text Box( 1 )] &amp;lt;&amp;lt; delete;
vlb &amp;lt;&amp;lt; append( Report( gb3 ) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Sep 2020 15:22:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hiding-Where-textboxes-in-graphics-using-JSL/m-p/307831#M56228</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-09-15T15:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding 'Where (...)' textboxes in graphics using JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Hiding-Where-textboxes-in-graphics-using-JSL/m-p/309472#M56336</link>
      <description>&lt;P&gt;I found very neat solution online :)&lt;/img&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dp = New Window("Graph Window", tb);

//delete all "Where" text on the chart
For( i = 1000, i &amp;gt; 0, i--, 
	try(
		If( Contains( dp[Text Box( i )] &amp;lt;&amp;lt; get text, "Where(:" ),
			dp[Text Box( i )] &amp;lt;&amp;lt; delete;
		)
	);
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Sat, 19 Sep 2020 07:11:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Hiding-Where-textboxes-in-graphics-using-JSL/m-p/309472#M56336</guid>
      <dc:creator>ThuongLe</dc:creator>
      <dc:date>2020-09-19T07:11:29Z</dc:date>
    </item>
  </channel>
</rss>

