<?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 distribution plots in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Saving-distribution-plots/m-p/644807#M84142</link>
    <description>&lt;P&gt;When you use the By() command, the platform returns a list, meaning that dist is actually a list with 2 values (dist[1] and dist[2] in this case). There may be more elegant ways to accomplish this, but one way would be to get a reference to the entire current window using Current Report ():&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dt_dist = Distribution(
	Nominal Distribution( Column( :age ), Horizontal Layout( 1 ), Vertical( 0 ) ),
	By( :sex )
);

rpt = Current Report();
dist = rpt &amp;lt;&amp;lt; get picture;

dist &amp;lt;&amp;lt; Save Picture( "$DESKTOP\distribution_plot.png", "png" );

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2023 14:59:05 GMT</pubDate>
    <dc:creator>Jed_Campbell</dc:creator>
    <dc:date>2023-06-21T14:59:05Z</dc:date>
    <item>
      <title>Saving distribution plots</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-distribution-plots/m-p/644421#M84119</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a distribution plot and I wanted to save the image as png. However, the only image that I am getting is the last image generated. How can I save all the plots?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt_dist = Distribution(
	Nominal Distribution( Column( :age ), Horizontal Layout( 1 ), Vertical( 0 ) ),
	By( :sex )
);
dist = dt_dist &amp;lt;&amp;lt; get picture;
dist &amp;lt;&amp;lt; Save Picture( "C:\distribution_plot.png", "png" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="UserID16644_0-1687325408382.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53983i2A2FA69CE41AA8AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="UserID16644_0-1687325408382.png" alt="UserID16644_0-1687325408382.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 05:33:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-distribution-plots/m-p/644421#M84119</guid>
      <dc:creator>UserID16644</dc:creator>
      <dc:date>2023-06-21T05:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Saving distribution plots</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-distribution-plots/m-p/644807#M84142</link>
      <description>&lt;P&gt;When you use the By() command, the platform returns a list, meaning that dist is actually a list with 2 values (dist[1] and dist[2] in this case). There may be more elegant ways to accomplish this, but one way would be to get a reference to the entire current window using Current Report ():&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

dt_dist = Distribution(
	Nominal Distribution( Column( :age ), Horizontal Layout( 1 ), Vertical( 0 ) ),
	By( :sex )
);

rpt = Current Report();
dist = rpt &amp;lt;&amp;lt; get picture;

dist &amp;lt;&amp;lt; Save Picture( "$DESKTOP\distribution_plot.png", "png" );

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 14:59:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-distribution-plots/m-p/644807#M84142</guid>
      <dc:creator>Jed_Campbell</dc:creator>
      <dc:date>2023-06-21T14:59:05Z</dc:date>
    </item>
  </channel>
</rss>

