<?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: Help with adding chart/graphic exporting commands to JSL script: high resolution, vector format in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Help-with-adding-chart-graphic-exporting-commands-to-JSL-script/m-p/427033#M67672</link>
    <description>&lt;P&gt;First quick glance, you appear to have dropped a closing ")" after your last Dispatch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is hard to tell if there are other issues because you did not include all of the platforms statements.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Oct 2021 15:18:21 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-10-15T15:18:21Z</dc:date>
    <item>
      <title>Help with adding chart/graphic exporting commands to JSL script: high resolution, vector format</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-adding-chart-graphic-exporting-commands-to-JSL-script/m-p/426615#M67646</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there relatively simple scripting language I can add to my bar chart JSL file as a novice JSL user that will export to a high resolution, vector format...preferably without all the "extra stuff" that comes with the selecting and copy/paste approach I currently use? I paste to Illustrator which works ok, but I still have to do a lot of clean up in Illustrator including (but not limited to) weird things like the left axis tic marks needing to be moved back to their original place after they seem to get "displaced" during the paste phase...?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a few of these that I need to make so the pasting (or even exporting straight from Graph Builder) is not ideal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If not (or even if so), advice about the best approach to pasting with minimal clean-up would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:18:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-adding-chart-graphic-exporting-commands-to-JSL-script/m-p/426615#M67646</guid>
      <dc:creator>ReneeBay</dc:creator>
      <dc:date>2023-06-11T11:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help with adding chart/graphic exporting commands to JSL script: high resolution, vector format</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-adding-chart-graphic-exporting-commands-to-JSL-script/m-p/426645#M67647</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/32929"&gt;@ReneeBay&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can this work for you?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
// Open Data Table: Big Class.jmp
// → Data Table( "Big Class" )
Open( "$SAMPLE_DATA/Big Class.jmp" );


// Launch platform: Distribution
output = Distribution(
	Nominal Distribution( Column( :age ) ),
	Nominal Distribution( Column( :sex ) ),
	Continuous Distribution( Column( :height ) )
);

output &amp;lt;&amp;lt; save picture ("C:\Users\Smart\Desktop\output1.svg");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;otherwise have a look at the reference in this discussion: &lt;BR /&gt;&lt;A href="https://community.jmp.com/t5/Discussions/JSL-Saving-picture-in-SVG-format/td-p/253434" target="_blank"&gt;https://community.jmp.com/t5/Discussions/JSL-Saving-picture-in-SVG-format/td-p/253434&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;let us know if it works for you&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>Thu, 14 Oct 2021 19:42:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-adding-chart-graphic-exporting-commands-to-JSL-script/m-p/426645#M67647</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2021-10-14T19:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with adding chart/graphic exporting commands to JSL script: high resolution, vector format</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-adding-chart-graphic-exporting-commands-to-JSL-script/m-p/426658#M67651</link>
      <description>&lt;P&gt;Thanks and Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess I accidentally hit "solution", but actually this didn't work for me yet, but I'm not sure I have the syntax perfect. What I have pasted below is a selection of the script with your suggestion at the bottom. I've tried a few iterations of comma and semi-colon, etc...placement but I still don't get a file to export, just Graph Builder opening...Any other suggestions?!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;SendToReport(
Dispatch(
{},
"DataYear",
ScaleBox,
{Min( 2009.5 ), Max( 2019.5 ), Inc( 1 ), Minor Ticks( 1 ),
Label Row( {Automatic Font Size( 0 ), Set Font Size( 10 )} )}
),
Dispatch(
{},
"Polychaeta",
ScaleBox,
{Format( "Fixed Dec", Use thousands separator( 1 ), 15, 0 ), Max( 27000 ),
Label Row(
{Automatic Font Size( 0 ), Automatic Tick Marks( 0 ), Show Minor Ticks( 0 ),
Set Font Size( 10 )}
)}
),
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
2,
Properties( 0, {Fill Color(RGB color(255,255,0))} ),
Properties( 1, {Fill Color(RGB color(137,68,68))} ),
Properties( 2, {Fill Color(RGB color(255,115,223) )} ),
Properties( 3, {Fill Color(RGB color(0,77,168))} ),
Properties( 4, {Fill Color(RGB color(169,0,230))} ),
Properties( 5, {Fill Color(RGB color(56,168,0))} ),
Properties( 6, {Fill Color(RGB color(230,0,0))} ),
Properties( 7, {Fill Color(RGB color(255,170,0))} ),
Properties( 8, {Fill Color(RGB color(115,223,255))} ),
Properties( 9, {Fill Color(RGB color(156,156,156))} )
)}
),
Dispatch( {}, "graph title", TextEditBox, {Set Font Size( 14 ), Set Text( "Chirikov" )} ),
Dispatch( {}, "X title", TextEditBox, {Set Font Size( 12 ), Set Text( "Year" )} ),
Dispatch( {}, "Y title", TextEditBox, {Set Font Size( 12 ), Set Text( "Abundance (#/m2)" )} )
)
)
(output &amp;lt;&amp;lt; save picture ("P:\JMP\test.pdf"));
);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Oct 2021 21:39:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-adding-chart-graphic-exporting-commands-to-JSL-script/m-p/426658#M67651</guid>
      <dc:creator>ReneeBay</dc:creator>
      <dc:date>2021-10-14T21:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with adding chart/graphic exporting commands to JSL script: high resolution, vector format</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-adding-chart-graphic-exporting-commands-to-JSL-script/m-p/426681#M67652</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/32929"&gt;@ReneeBay&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;the script you provide is partial.&lt;/P&gt;
&lt;P&gt;try running this script first just to see if it works for you in terms of producing an svg file from the platform you are using.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Open Data Table: Big Class.jmp
Open( "$SAMPLE_DATA/Big Class.jmp" );

// create a graph 
output = Graph Builder(
	Size( 528, 458 ),
	Show Control Panel( 0 ),
	Fit to Window( "Off" ),
	Variables( X( :weight ), Y( :height ) ),
	Elements( Points( X, Y, Legend( 3 ) ), Smoother( X, Y, Legend( 4 ) ) )
);

// save output as SVG
output &amp;lt;&amp;lt; save picture ("C:\Users\Smart\Desktop\output1.svg");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;the key components in this script are giving the graph a name: "output = graph..."&lt;/P&gt;
&lt;P&gt;and then saving it using the following command "output&amp;lt;&amp;lt; save picture...."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 21:06:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-adding-chart-graphic-exporting-commands-to-JSL-script/m-p/426681#M67652</guid>
      <dc:creator>ron_horne</dc:creator>
      <dc:date>2021-10-14T21:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with adding chart/graphic exporting commands to JSL script: high resolution, vector format</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-adding-chart-graphic-exporting-commands-to-JSL-script/m-p/427024#M67671</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That script independently did work! I was able to open the SVG in Illustrator, but the chart content wasn't visible, so I tried PDF and that worked. But when I try to add it to my script, I get this error below&lt;SPAN class=""&gt;. I tried putting the output portion of your script in a couple of different places in mine and while that got around the error message, it did not produce a graphic...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I have it placed at the end of my script with enough parentheses to not get the error message, but also do not get a graphic...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;error: "unexpected "output". Perhaps there is a missing "," or ")"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks for any continued help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;)}&lt;BR /&gt;),&lt;BR /&gt;Dispatch(&lt;BR /&gt;{},&lt;BR /&gt;"400",&lt;BR /&gt;ScaleBox,&lt;BR /&gt;{Legend Model(&lt;BR /&gt;2,&lt;BR /&gt;Properties( 0, {Fill Color(RGB color(255,255,0))} ),&lt;BR /&gt;Properties( 1, {Fill Color(RGB color(137,68,68))} ),&lt;BR /&gt;Properties( 2, {Fill Color(RGB color(255,115,223) )} ),&lt;BR /&gt;Properties( 3, {Fill Color(RGB color(0,77,168))} ),&lt;BR /&gt;Properties( 4, {Fill Color(RGB color(169,0,230))} ),&lt;BR /&gt;Properties( 5, {Fill Color(RGB color(56,168,0))} ),&lt;BR /&gt;Properties( 6, {Fill Color(RGB color(230,0,0))} ),&lt;BR /&gt;Properties( 7, {Fill Color(RGB color(255,170,0))} ),&lt;BR /&gt;Properties( 8, {Fill Color(RGB color(115,223,255))} ),&lt;BR /&gt;Properties( 9, {Fill Color(RGB color(156,156,156))} )&lt;BR /&gt;)}&lt;BR /&gt;),&lt;BR /&gt;Dispatch( {}, "graph title", TextEditBox, {Set Font Size( 14 ), Set Text( "Chirikov" )} ),&lt;BR /&gt;Dispatch( {}, "X title", TextEditBox, {Set Font Size( 12 ), Set Text( "Year" )} ),&lt;BR /&gt;Dispatch( {}, "Y title", TextEditBox, {Set Font Size( 12 ), Set Text( "Abundance (#/m2)" )}&lt;BR /&gt;// save output as PDF&lt;BR /&gt;(output &amp;lt;&amp;lt; save picture ("P:\Graphics\JMP\test1.pdf"));&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 15:05:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-adding-chart-graphic-exporting-commands-to-JSL-script/m-p/427024#M67671</guid>
      <dc:creator>ReneeBay</dc:creator>
      <dc:date>2021-10-15T15:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with adding chart/graphic exporting commands to JSL script: high resolution, vector format</title>
      <link>https://community.jmp.com/t5/Discussions/Help-with-adding-chart-graphic-exporting-commands-to-JSL-script/m-p/427033#M67672</link>
      <description>&lt;P&gt;First quick glance, you appear to have dropped a closing ")" after your last Dispatch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is hard to tell if there are other issues because you did not include all of the platforms statements.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 15:18:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Help-with-adding-chart-graphic-exporting-commands-to-JSL-script/m-p/427033#M67672</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-10-15T15:18:21Z</dc:date>
    </item>
  </channel>
</rss>

