<?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: To copy graphs from journal in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70696#M35274</link>
    <description>Hi Txnelson,&lt;BR /&gt;&lt;BR /&gt;I still get the error "Name Unresolved: vc in access or evaluation of 'vc' , vc/*###*/" after changing it to report(vc).</description>
    <pubDate>Thu, 30 Aug 2018 18:52:20 GMT</pubDate>
    <dc:creator>vishwasanj</dc:creator>
    <dc:date>2018-08-30T18:52:20Z</dc:date>
    <item>
      <title>To copy graphs from journal</title>
      <link>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70693#M35271</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a script that creates a bunch of graphs in journal. I want to put a small box at the bottom of each graph so that I can copy that easily.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = New Window( "Plots",
V List Box(
vc= dt&amp;lt;&amp;lt;Variability Chart(
Y( :Name( "variable" ) ),
X( :WAFER_ID ),
Std Dev Chart( 0 ),
Show Box Plots( 1 ),
SendToReport(
Dispatch(
{"Variable"},
"2",
ScaleBox,
{Min( 48 ), Max( 60 ), Inc( 2 ), Minor Ticks( 1 )}
)
)
),
H List Box(
Button box("Copy Distribution",
vc &amp;lt;&amp;lt; copy picture;
)


)
)
);
path= get default directory();
(nw&amp;lt;&amp;lt;parent) &amp;lt;&amp;lt; Save Journal(path  || "check.jrn", "jrn" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason, it is saving the graph, but when I try to open the journal and click on the button to copy, it says vc not found?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 15:11:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70693#M35271</guid>
      <dc:creator>vishwasanj</dc:creator>
      <dc:date>2018-09-05T15:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: To copy graphs from journal</title>
      <link>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70695#M35273</link>
      <description>&lt;P&gt;The issue is that "vc" points to the Platform, not to the report for the platform.&amp;nbsp; It is the report that you want to make a copy of.&amp;nbsp; Change the script for the button to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Button Box( "Copy Distribution", report(vc) &amp;lt;&amp;lt; copy picture )&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Aug 2018 18:45:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70695#M35273</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-08-30T18:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: To copy graphs from journal</title>
      <link>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70696#M35274</link>
      <description>Hi Txnelson,&lt;BR /&gt;&lt;BR /&gt;I still get the error "Name Unresolved: vc in access or evaluation of 'vc' , vc/*###*/" after changing it to report(vc).</description>
      <pubDate>Thu, 30 Aug 2018 18:52:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70696#M35274</guid>
      <dc:creator>vishwasanj</dc:creator>
      <dc:date>2018-08-30T18:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: To copy graphs from journal</title>
      <link>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70701#M35277</link>
      <description>&lt;P&gt;This code copies the graph to the clipboard without issue.&amp;nbsp; When I run this, click on the "Copy Distribution" button and then open a new journal, and do a CNTL/v, the graph is pasted very nicely into the new journal.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=open("$SAMPLE_DATA\big class.jmp");
nw = New Window( "Plots",
	V List Box(
		vc = dt &amp;lt;&amp;lt; Variability Chart(
			Y( :Name( "weight" ) ),
			X( :age ),
			Std Dev Chart( 0 ),
			Show Box Plots( 1 )
		),
		H List Box(
			Button Box( "Copy Distribution", report(vc) &amp;lt;&amp;lt; copy picture )


		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Aug 2018 19:09:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70701#M35277</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-08-30T19:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: To copy graphs from journal</title>
      <link>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70704#M35279</link>
      <description>Thank txnelson for the suggestion.&lt;BR /&gt;&lt;BR /&gt;However, I have a lot of graphs like that and the idea of having that copy distribution is to have a flexible x and y axis, the way you can go up and down in a journal. If I like the graph, I can click on the copy distribution and paste it in the presentation.&lt;BR /&gt;&lt;BR /&gt;Any other idea? I really appreciate all your comments, time and effort. :)&lt;/img&gt;</description>
      <pubDate>Thu, 30 Aug 2018 19:16:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70704#M35279</guid>
      <dc:creator>vishwasanj</dc:creator>
      <dc:date>2018-08-30T19:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: To copy graphs from journal</title>
      <link>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70707#M35281</link>
      <description>&lt;P&gt;I am a bit confused......If you want the button to automatically save the chart to a journal.....the code below will do that....but I am not sure that is what you are actually asking for.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;names default to here(1);
dt=open("$SAMPLE_DATA\big class.jmp");
nw = New Window( "Plots",
	V List Box(
		vc = dt &amp;lt;&amp;lt; Variability Chart(
			Y( :Name( "weight" ) ),
			X( :age ),
			Std Dev Chart( 0 ),
			Show Box Plots( 1 )
		),
		H List Box(
			Button Box( "Copy Distribution", jj = current journal();report(vc) &amp;lt;&amp;lt; journal )


		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Aug 2018 19:55:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70707#M35281</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-08-30T19:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: To copy graphs from journal</title>
      <link>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70728#M35290</link>
      <description>&lt;P&gt;I think the request is to create a journal with a button to copy the graph if so desired. My assumption is that clicking the button would allow the user to then use paste to paste the copied picture to a powerpoint doc or some doc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you create the journal and save it, there no longer is a link to &lt;STRONG&gt;vc&lt;/STRONG&gt; nor &lt;STRONG&gt;nw&lt;/STRONG&gt;. You need to use a relative reference command. If this is what you want, your script needs to change to &amp;lt;&amp;lt;Set Function(); see below. "&lt;STRONG&gt;this&lt;/STRONG&gt;" refers to the button box, &lt;STRONG&gt;Parent&lt;/STRONG&gt; is the HListBox and &lt;STRONG&gt;Child&lt;/STRONG&gt; is the variability plot.&amp;nbsp; As Jim mentioned, if this isn't what you want, please add more details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script below shows one method to manage By variables.&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");

nw = New Window( "Plots", &amp;lt;&amp;lt;journal);

vc = dt &amp;lt;&amp;lt; Variability Chart(
	Y( :Name( "weight" ) ),
	X( :age ),
	By(:sex),
	Std Dev Chart( 0 ),
	Show Box Plots( 1 )
);
for(i=1,i&amp;lt;=nitems(vc), i++,
  nw &amp;lt;&amp;lt; append (HListBox(
  vc[i]&amp;lt;&amp;lt;clone box, 
  ButtonBox("Copy Picture",
    &amp;lt;&amp;lt;Set Function(Function( {this},
	   ((this &amp;lt;&amp;lt; Parent) &amp;lt;&amp;lt; child) &amp;lt;&amp;lt; Copy Picture
      )) /* SetFunction: 'this display box' is first arg */
    ) //Button Box
   ) // HlistBox
 )   //append
);  //for i

vc &amp;lt;&amp;lt; close window();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 05:12:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70728#M35290</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-31T05:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: To copy graphs from journal</title>
      <link>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70801#M35304</link>
      <description>Thank you gzmorgan0 for the reply. This is exactly I want. If I have multiple graphs like vc1, vc2... vc12 in a window put together. Any idea how to loop everything to attach the copy picture icon next to each graph using your idea? Thanks.</description>
      <pubDate>Fri, 31 Aug 2018 14:57:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70801#M35304</guid>
      <dc:creator>vishwasanj</dc:creator>
      <dc:date>2018-08-31T14:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: To copy graphs from journal</title>
      <link>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70849#M35318</link>
      <description>&lt;P&gt;vishwasanj,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script I provided used by variables, since you stated you had multiple graphs. This is not a conducive forum to explain options. My co-authors and I spend 3 chapters on our JSL book* to explain describing, the report structure, how to build interactive displays and the difference between &lt;STRONG&gt;top down&lt;/STRONG&gt;&amp;nbsp; vs. &lt;STRONG&gt;bottom up&lt;/STRONG&gt;&amp;nbsp;methods.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;top down&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;-&amp;nbsp;build the report, then insert controls&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;STRONG&gt;bottom up&lt;/STRONG&gt;&amp;nbsp;-&amp;nbsp;build each graph and control and add it to the report one display at a time&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The previously provided script builds the report with one By statement (top down), but builds the journal one graph at a time (bottom up).&amp;nbsp; The method to use depends upon the status of your report. I like the bottom up method, because you have complete control on where to place the button. The script places it to the right of grpah, but it could be to the left, top or bottom. What is your usage/scenario? Do you have:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;a "batch" script that creates a journal of graphs and now you are opening the journal and want to add buttons?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;a live window, where each variability chart has its own reference vc1, vc2, ... vc12? Does each &lt;STRONG&gt;vc&lt;/STRONG&gt;k&amp;nbsp;have one variability plot or multiple plots, due to using By()?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;??&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Note when you journal a window (scenario #1), each result is either an OutlineBox() or a ListBox(). So getting the current journal and button placement is trickier than building the button bottoms up.&amp;nbsp; If you could provide more details of how you are creating your window, then someone on the blog could give you some hints.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;*&lt;STRONG&gt;JSL Companion, Applications of the JMP scripting Language, Second Edition&lt;/STRONG&gt;, chapters 6, 7, 8&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Aug 2018 21:03:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/70849#M35318</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-08-31T21:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: To copy graphs from journal</title>
      <link>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/184071#M40326</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to create a graph, variability chart for exapmle, to add this button to every graph at the varibilty chart(not to journal)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am asking that&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;because&amp;nbsp;&lt;/SPAN&gt;i need to edit the graph before coping it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ilan&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 20:21:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/To-copy-graphs-from-journal/m-p/184071#M40326</guid>
      <dc:creator>Ilan</dc:creator>
      <dc:date>2019-03-05T20:21:09Z</dc:date>
    </item>
  </channel>
</rss>

