<?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: Annotate Graphs Automatically in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Annotate-Graphs-Automatically/m-p/847340#M102205</link>
    <description>&lt;P&gt;Might depend on a bit where you wish to add the annotation to&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Variability Data/2 Factors Crossed.jmp");
obj = dt &amp;lt;&amp;lt; Variability Chart(Y(:Measurement), X(:Operator, :part#));
report(obj) &amp;lt;&amp;lt; Add Text Annotation(
	Text("We need to discuss this at the next meeting."),
	Text Box({65, 35, 200, 77})
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 11 Mar 2025 14:20:30 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-03-11T14:20:30Z</dc:date>
    <item>
      <title>Annotate Graphs Automatically</title>
      <link>https://community.jmp.com/t5/Discussions/Annotate-Graphs-Automatically/m-p/847328#M102202</link>
      <description>&lt;P&gt;I have a string stored in the Notes for a series of columns in a table and I have assigned this to the object "Notes".&amp;nbsp; When I plot these columns in a variability chart, I would like the Notes to show up automatically as an annotation.&amp;nbsp; My initial thought was to somehow include the annotation in the original plot but I'm thinking I should create the plots and annotate afterwards.&amp;nbsp; Any clue how to do this, the code below doesn't work?&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;spud = Variability Chart( );


spud &amp;lt;&amp;lt; Add Text Annotation(
				Text( "Category: " || Notes ),
				Fixed Size( 0 ),
				Text Box( {1, -30, 382, 184} ),
				Filled( 0 )
			);&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Mar 2025 14:06:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Annotate-Graphs-Automatically/m-p/847328#M102202</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2025-03-11T14:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Annotate Graphs Automatically</title>
      <link>https://community.jmp.com/t5/Discussions/Annotate-Graphs-Automatically/m-p/847340#M102205</link>
      <description>&lt;P&gt;Might depend on a bit where you wish to add the annotation to&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Variability Data/2 Factors Crossed.jmp");
obj = dt &amp;lt;&amp;lt; Variability Chart(Y(:Measurement), X(:Operator, :part#));
report(obj) &amp;lt;&amp;lt; Add Text Annotation(
	Text("We need to discuss this at the next meeting."),
	Text Box({65, 35, 200, 77})
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Mar 2025 14:20:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Annotate-Graphs-Automatically/m-p/847340#M102205</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-03-11T14:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Annotate Graphs Automatically</title>
      <link>https://community.jmp.com/t5/Discussions/Annotate-Graphs-Automatically/m-p/847341#M102206</link>
      <description>&lt;P&gt;This works well but it needs predefined inputs.&amp;nbsp; I'm after something that allows inputs to be selected and then annotates those.&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 14:30:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Annotate-Graphs-Automatically/m-p/847341#M102206</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2025-03-11T14:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Annotate Graphs Automatically</title>
      <link>https://community.jmp.com/t5/Discussions/Annotate-Graphs-Automatically/m-p/847598#M102247</link>
      <description>&lt;P&gt;I make a facsimile of the Variability Plot Interface and Annotate from there.&amp;nbsp; Will probably need refinement but seems to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Names Default To Here( 1 );&lt;BR /&gt;dt = Current Data Table();&lt;BR /&gt;If( !Namespace Exists( "Custom Dialog" ),&lt;BR /&gt;dialogRecallNS = New Namespace(&lt;BR /&gt;"Custom Dialog",&lt;BR /&gt;{&lt;BR /&gt;ycolRecall =&lt;BR /&gt;{&lt;BR /&gt;}&lt;BR /&gt;,&lt;BR /&gt;standRecall =&lt;BR /&gt;{&lt;BR /&gt;}&lt;BR /&gt;,&lt;BR /&gt;xcolRecall =&lt;BR /&gt;{&lt;BR /&gt;}&lt;BR /&gt;,&lt;BR /&gt;freqRecall =&lt;BR /&gt;{&lt;BR /&gt;}&lt;BR /&gt;,&lt;BR /&gt;partRecall =&lt;BR /&gt;{&lt;BR /&gt;}&lt;BR /&gt;,&lt;BR /&gt;byRecall =&lt;BR /&gt;{&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;)&lt;BR /&gt;,&lt;BR /&gt;dialogRecallNS = Namespace( "Custom Dialog" )&lt;BR /&gt;);&lt;BR /&gt;nc = N Col( dt );&lt;BR /&gt;lbWidth = 130;&lt;BR /&gt;pgm = Expr(&lt;BR /&gt;nw = New Window( "Annotated Multiple Plots",&lt;BR /&gt;For( i = 1, i &amp;lt;= N Items( exy ), i++,&lt;BR /&gt;Notes = Try( Column( dt, exy[i] ) &amp;lt;&amp;lt; Get Property( "Notes" ) );&lt;BR /&gt;Try(&lt;BR /&gt;Variability Chart(&lt;BR /&gt;Y( exy[i] ),&lt;BR /&gt;X( Eval( exx ) ),&lt;BR /&gt;Standard( Eval( Standy ) ),&lt;BR /&gt;Freq( Eval( Freqy ) ),&lt;BR /&gt;By( Eval( Byy ) ),&lt;BR /&gt;SendToReport(&lt;BR /&gt;Dispatch(&lt;BR /&gt;{},&lt;BR /&gt;"",&lt;BR /&gt;AxisBox( 2 ),&lt;BR /&gt;Add Text Annotation(&lt;BR /&gt;Text( "Category: " || Notes ),&lt;BR /&gt;Fixed Size( 0 ),&lt;BR /&gt;Text Box( {0, -255, 0, 0} ),&lt;BR /&gt;Filled( 0 )&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;);&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;);&lt;BR /&gt;clearRoles = Expr(&lt;BR /&gt;colListY &amp;lt;&amp;lt; RemoveAll;&lt;BR /&gt;colListX &amp;lt;&amp;lt; RemoveAll;&lt;BR /&gt;Stand &amp;lt;&amp;lt; RemoveAll;&lt;BR /&gt;Freq &amp;lt;&amp;lt; RemoveAll;&lt;BR /&gt;Part &amp;lt;&amp;lt; RemoveAll;&lt;BR /&gt;By &amp;lt;&amp;lt; RemoveAll;&lt;BR /&gt;);&lt;BR /&gt;recallRoles = Expr(&lt;BR /&gt;dialogRecallNS:ycolRecall = colListY &amp;lt;&amp;lt; GetItems;&lt;BR /&gt;dialogRecallNS:xcolRecall = colListX &amp;lt;&amp;lt; GetItems;&lt;BR /&gt;dialogRecallNS:standRecall = Stand &amp;lt;&amp;lt; GetItems;&lt;BR /&gt;dialogRecallNS:freqRecall = Freq &amp;lt;&amp;lt; GetItems;&lt;BR /&gt;dialogRecallNS:partRecall = Part &amp;lt;&amp;lt; GetItems;&lt;BR /&gt;dialogRecallNS:byRecall = By &amp;lt;&amp;lt; GetItems;&lt;BR /&gt;);&lt;BR /&gt;customDlg = New Window( "Example of a Custom Dialog",&lt;BR /&gt;Border Box( Left( 3 ), top( 2 ),&lt;BR /&gt;V List Box(&lt;BR /&gt;H List Box(&lt;BR /&gt;V List Box(&lt;BR /&gt;Panel Box( "Select Columns",&lt;BR /&gt;colListData =&lt;BR /&gt;Filter Col Selector(&lt;BR /&gt;All,&lt;BR /&gt;width( lbWidth ),&lt;BR /&gt;nLines( Min( nc, 10 ) )&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;Panel Box( "Cast Selected Columns into Roles",&lt;BR /&gt;Lineup Box( N Col( 2 ), Spacing( 3 ),&lt;BR /&gt;Button Box( "Y, Response",&lt;BR /&gt;colListY &amp;lt;&amp;lt; Append( colListData &amp;lt;&amp;lt; GetSelected )&lt;BR /&gt;),&lt;BR /&gt;colListY = Col List Box( width( lbWidth ), nLines( 5 ) ),&lt;BR /&gt;Button Box( "Standard",&lt;BR /&gt;Stand &amp;lt;&amp;lt; Append( colListData &amp;lt;&amp;lt; GetSelected )&lt;BR /&gt;),&lt;BR /&gt;Stand = Col List Box( width( lbWidth ), nLines( 1 ) ),&lt;BR /&gt;Button Box( "X, Grouping",&lt;BR /&gt;colListX &amp;lt;&amp;lt; Append( colListData &amp;lt;&amp;lt; GetSelected )&lt;BR /&gt;),&lt;BR /&gt;colListX = Col List Box( width( lbWidth ), nLines( 2 ) ),&lt;BR /&gt;Button Box( "Freq",&lt;BR /&gt;Freq &amp;lt;&amp;lt; Append( colListData &amp;lt;&amp;lt; GetSelected )&lt;BR /&gt;),&lt;BR /&gt;Freq = Col List Box( width( lbWidth ), nLines( 1 ) ),&lt;BR /&gt;Button Box( "Part, Sample ID",&lt;BR /&gt;Part &amp;lt;&amp;lt; Append( colListData &amp;lt;&amp;lt; GetSelected )&lt;BR /&gt;),&lt;BR /&gt;Part = Col List Box( width( lbWidth ), nLines( 1 ) ),&lt;BR /&gt;Button Box( "By",&lt;BR /&gt;By &amp;lt;&amp;lt; Append( colListData &amp;lt;&amp;lt; GetSelected )&lt;BR /&gt;),&lt;BR /&gt;By = Col List Box( width( lbWidth ), nLines( 2 ) )&lt;BR /&gt;),&lt;BR /&gt;Text Box(&lt;BR /&gt;"Operator, Instrument are examples of possible Grouping Columns"&lt;BR /&gt;)&lt;BR /&gt;),&lt;BR /&gt;Panel Box( "Action",&lt;BR /&gt;Lineup Box( N Col( 1 ),&lt;BR /&gt;Button Box( "OK",&lt;BR /&gt;recallRoles;&lt;BR /&gt;exy = colListY &amp;lt;&amp;lt; get items;&lt;BR /&gt;exx = colListX &amp;lt;&amp;lt; get items;&lt;BR /&gt;Standy = Stand &amp;lt;&amp;lt; Get Items;&lt;BR /&gt;Freqy = Freq &amp;lt;&amp;lt; Get Items;&lt;BR /&gt;Party = Stand &amp;lt;&amp;lt; Get Items;&lt;BR /&gt;Byy = By &amp;lt;&amp;lt; Get Items;&lt;BR /&gt;pgm;&lt;BR /&gt;customDlg &amp;lt;&amp;lt; CloseWindow;&lt;BR /&gt;),&lt;BR /&gt;Button Box( "Cancel", customDlg &amp;lt;&amp;lt; CloseWindow ),&lt;BR /&gt;Button Box( "Reset", clearRoles ),&lt;BR /&gt;Text Box( " " ),&lt;BR /&gt;Button Box( "Remove",&lt;BR /&gt;colListY &amp;lt;&amp;lt; RemoveSelected;&lt;BR /&gt;colListX &amp;lt;&amp;lt; RemoveSelected;&lt;BR /&gt;Stand &amp;lt;&amp;lt; RemoveSelected;&lt;BR /&gt;Freq &amp;lt;&amp;lt; RemoveSelected;&lt;BR /&gt;Part &amp;lt;&amp;lt; RemoveSelected;&lt;BR /&gt;By &amp;lt;&amp;lt; RemoveSelected;&lt;BR /&gt;),&lt;BR /&gt;Button Box( "Recall",&lt;BR /&gt;clearRoles;&lt;BR /&gt;Try(&lt;BR /&gt;colListY &amp;lt;&amp;lt; Append( dialogRecallNS:ycolRecall );&lt;BR /&gt;colListX &amp;lt;&amp;lt; Append( dialogRecallNS:xcolRecall );&lt;BR /&gt;Stand &amp;lt;&amp;lt; Append( dialogRecallNS:standRecall );&lt;BR /&gt;Freq &amp;lt;&amp;lt; Append( dialogRecallNS:freqRecall );&lt;BR /&gt;Part &amp;lt;&amp;lt; Append( dialogRecallNS:partRecall );&lt;BR /&gt;By &amp;lt;&amp;lt; Append( dialogRecallNS:byRecall );&lt;BR /&gt;);&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;);&lt;BR /&gt;colListx &amp;lt;&amp;lt; set min items( 1 );&lt;BR /&gt;colListy &amp;lt;&amp;lt; set min items( 1 );&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 22:06:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Annotate-Graphs-Automatically/m-p/847598#M102247</guid>
      <dc:creator>SpannerHead</dc:creator>
      <dc:date>2025-03-13T22:06:10Z</dc:date>
    </item>
  </channel>
</rss>

