<?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: Saving multiple graphs in a window report to a single svg in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-a-window-report-to-a-single-svg/m-p/688145#M87382</link>
    <description>&lt;P&gt;Thanks jthi.&amp;nbsp; I appreciate the suggestion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use Save picture is saves only one chart from the window report not the whole collection.&amp;nbsp; Using "Save As" and graph type svg saves them all.&amp;nbsp; Not sure how to mimic what save as is doing in jsl.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2023 19:34:47 GMT</pubDate>
    <dc:creator>SampleTapir814</dc:creator>
    <dc:date>2023-10-17T19:34:47Z</dc:date>
    <item>
      <title>Saving multiple graphs in a window report to a single svg</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-a-window-report-to-a-single-svg/m-p/688125#M87379</link>
      <description>&lt;P&gt;I am trying to save all the graphs in a bivariate report to an svg.&amp;nbsp; When I use "Save as" to do it it works fine.&amp;nbsp; I can't get it to work in jsl.&amp;nbsp;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 19:06:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-a-window-report-to-a-single-svg/m-p/688125#M87379</guid>
      <dc:creator>SampleTapir814</dc:creator>
      <dc:date>2023-10-17T19:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Saving multiple graphs in a window report to a single svg</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-a-window-report-to-a-single-svg/m-p/688133#M87380</link>
      <description>&lt;P&gt;According to Scripting Index &amp;lt;&amp;lt; Save Window Report is used to save the report as JMP report file&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1697569903996.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57731iD0EFF0A1D9C78C2A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1697569903996.png" alt="jthi_0-1697569903996.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I think you have to use Save Picture if you wish to have SVG and if you are using By variables, you might have to wrap your report to new window (or get a reference to the report)&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("",
	dist = dt &amp;lt;&amp;lt; distribution(Column(:height), By(:age));
);

nw &amp;lt;&amp;lt; Save Picture("$DOWNLOADS/test.svg", "svg");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And why use save picture is based on this Export option and a guess&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1697570362694.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/57732i349EAE414580F35E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1697570362694.png" alt="jthi_1-1697570362694.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 19:22:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-a-window-report-to-a-single-svg/m-p/688133#M87380</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-17T19:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Saving multiple graphs in a window report to a single svg</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-a-window-report-to-a-single-svg/m-p/688145#M87382</link>
      <description>&lt;P&gt;Thanks jthi.&amp;nbsp; I appreciate the suggestion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use Save picture is saves only one chart from the window report not the whole collection.&amp;nbsp; Using "Save As" and graph type svg saves them all.&amp;nbsp; Not sure how to mimic what save as is doing in jsl.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 19:34:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-a-window-report-to-a-single-svg/m-p/688145#M87382</guid>
      <dc:creator>SampleTapir814</dc:creator>
      <dc:date>2023-10-17T19:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Saving multiple graphs in a window report to a single svg</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-a-window-report-to-a-single-svg/m-p/688165#M87384</link>
      <description>&lt;P&gt;Print what your BLAH_REPORT variable contains. Most likely it is a list and you are sending the save message to all of those different plots in that (they will most likely overwrite each other or only first one is being saved). You will have to get the reference to the whole report, you have few options: use new window and create bivariate inside it (see my earlier message) or you could use &amp;lt;&amp;lt; top parent on first of the plot to get the highest level reference (replace dist with your variable)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;(dist[1] &amp;lt;&amp;lt; top parent) &amp;lt;&amp;lt; Save Picture("$DOWNLOADS/test.svg", "svg");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Oct 2023 20:00:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-a-window-report-to-a-single-svg/m-p/688165#M87384</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-10-17T20:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Saving multiple graphs in a window report to a single svg</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-a-window-report-to-a-single-svg/m-p/688168#M87385</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Bingo!  Adding New Window worked.  Thanks Jarmo!&lt;BR /&gt;&lt;BR /&gt;BLAH_REPORT = New Window("", Bivariate(
Y( :Data ),
X( :pdatetime ),
By( :SEQ, :CATEGORY, :STAGE, :STEP, :MEAS_TYPE ),
Add Text Annotation( Text( "Updated: " || date_today ), Fixed Size( 2 ), Text Box( {1400, 3, 1800, 62} ), Filled( 0 ) ),
SendToReport(
Dispatch(
{},
"Bivar Plot",
FrameBox,
{Row Legend(
:GRP,
Color( 1 ),
Color Theme( "STRONG" ),
Marker( 0 ),
Marker Theme( "" ),
Continuous Scale( 0 ),
Reverse Scale( 1 ),
Excluded Rows( 0 )
), Frame Size( 1367, 480 )}
)
)
);
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Oct 2023 20:11:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-multiple-graphs-in-a-window-report-to-a-single-svg/m-p/688168#M87385</guid>
      <dc:creator>SampleTapir814</dc:creator>
      <dc:date>2023-10-17T20:11:16Z</dc:date>
    </item>
  </channel>
</rss>

