<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Export plot data</title>
    <link>http://www.mapleprimes.com/questions/37002-Export-Plot-Data</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Wed, 10 Jun 2026 17:50:27 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 17:50:27 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Export plot data</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Export plot data</title>
      <link>http://www.mapleprimes.com/questions/37002-Export-Plot-Data</link>
    </image>
    <item>
      <title>VBA</title>
      <link>http://www.mapleprimes.com/questions/37002-Export-Plot-Data?ref=Feed:MaplePrimes:Export plot data:Comments#answer64742</link>
      <itunes:summary>&lt;p&gt;&lt;a target="_blank" href="http://www.mapleprimes.com/forum/outputequationdataexcel"&gt;is this useful?&lt;/a&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a target="_blank" href="http://www.mapleprimes.com/forum/outputequationdataexcel"&gt;is this useful?&lt;/a&gt;&lt;/p&gt;</description>
      <guid>64742</guid>
      <pubDate>Tue, 21 Jul 2009 21:26:47 Z</pubDate>
      <itunes:author>PatrickT</itunes:author>
      <author>PatrickT</author>
    </item>
    <item>
      <title>Robert Israel once made the</title>
      <link>http://www.mapleprimes.com/questions/37002-Export-Plot-Data?ref=Feed:MaplePrimes:Export plot data:Comments#answer64743</link>
      <itunes:summary>&lt;p&gt;&lt;a target="_blank" href="http://hotw-to-get-the-data-from-a-3d-plot"&gt;Robert Israel once made the following suggestion, which I have tested and it works:&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Tested on : Windows Vista / Maple 13 / Classic GUI&lt;/p&gt;
&lt;p&gt;You must first create a directory c:\tmp (or whatever).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;
restart:
with(plots):

P:= plot3d(x^2+y^2,x=0..1,y=0..1):
&lt;/pre&gt;
&lt;pre&gt;
A:= op([1,3],P):
a,b:= op(op([1,1],P)):
c,d:= op(op([1,2],P)):
m:= rhs(rtable_dims(A)[1]):
n:= rhs(rtable_dims(A)[2]):
for i from 1 to m do
&amp;nbsp;for j from 1 to n do
&amp;nbsp;&amp;nbsp; X:= ((m-i)*a + (i-1)*b)/(m-1);
&amp;nbsp;&amp;nbsp; Y:= ((n-j)*c + (j-1)*d)/(n-1);
&amp;nbsp;&amp;nbsp; fprintf(&amp;quot;c:/tmp/myfile.txt&amp;quot;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;%f&amp;nbsp; %f&amp;nbsp; %f\n&amp;quot;,X,Y,A[i,j]);
&amp;nbsp;end do
end do:
close(&amp;quot;c:/tmp/myfile.txt&amp;quot;):
&lt;/pre&gt;
&lt;pre&gt;

&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a target="_blank" href="http://hotw-to-get-the-data-from-a-3d-plot"&gt;Robert Israel once made the following suggestion, which I have tested and it works:&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Tested on : Windows Vista / Maple 13 / Classic GUI&lt;/p&gt;
&lt;p&gt;You must first create a directory c:\tmp (or whatever).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;
restart:
with(plots):

P:= plot3d(x^2+y^2,x=0..1,y=0..1):
&lt;/pre&gt;
&lt;pre&gt;
A:= op([1,3],P):
a,b:= op(op([1,1],P)):
c,d:= op(op([1,2],P)):
m:= rhs(rtable_dims(A)[1]):
n:= rhs(rtable_dims(A)[2]):
for i from 1 to m do
&amp;nbsp;for j from 1 to n do
&amp;nbsp;&amp;nbsp; X:= ((m-i)*a + (i-1)*b)/(m-1);
&amp;nbsp;&amp;nbsp; Y:= ((n-j)*c + (j-1)*d)/(n-1);
&amp;nbsp;&amp;nbsp; fprintf(&amp;quot;c:/tmp/myfile.txt&amp;quot;,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;%f&amp;nbsp; %f&amp;nbsp; %f\n&amp;quot;,X,Y,A[i,j]);
&amp;nbsp;end do
end do:
close(&amp;quot;c:/tmp/myfile.txt&amp;quot;):
&lt;/pre&gt;
&lt;pre&gt;

&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>64743</guid>
      <pubDate>Tue, 21 Jul 2009 21:40:26 Z</pubDate>
      <itunes:author>PatrickT</itunes:author>
      <author>PatrickT</author>
    </item>
    <item>
      <title>Thank you!</title>
      <link>http://www.mapleprimes.com/questions/37002-Export-Plot-Data?ref=Feed:MaplePrimes:Export plot data:Comments#answer64745</link>
      <itunes:summary>&lt;p&gt;Dear Robert and Patrick, &lt;/p&gt;
&lt;p&gt;Thank you very much for helping me and providing these two solution tricks. &lt;/p&gt;
&lt;p&gt;I will immedeately try them out!&lt;/p&gt;
&lt;p&gt;Have a nice day!&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Dear Robert and Patrick, &lt;/p&gt;
&lt;p&gt;Thank you very much for helping me and providing these two solution tricks. &lt;/p&gt;
&lt;p&gt;I will immedeately try them out!&lt;/p&gt;
&lt;p&gt;Have a nice day!&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;</description>
      <guid>64745</guid>
      <pubDate>Wed, 22 Jul 2009 11:05:52 Z</pubDate>
      <itunes:author>femarkus</itunes:author>
      <author>femarkus</author>
    </item>
    <item>
      <title>data</title>
      <link>http://www.mapleprimes.com/questions/37002-Export-Plot-Data?ref=Feed:MaplePrimes:Export plot data:Comments#comment64744</link>
      <itunes:summary>&lt;p&gt;It's not necessary to create the directory: I'm just assuming you want to put the file into some directory somewhere (probably one that you already have).&lt;/p&gt;
&lt;p&gt;In this case there's no reason to extract the data from a plot, especially since plot (as opposed to plot3d) does not divide the interval into equal subintervals.&amp;nbsp; You can do something like this:&lt;/p&gt;
&lt;pre&gt;
&amp;gt; outfile := &amp;quot;c:/tmp/myfile.csv&amp;quot;:
&amp;nbsp;&amp;nbsp; for i from 350 to 1500 do
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; fprintf(outfile, &amp;quot;%d,%f\n&amp;quot;, i, n(i)); 
&amp;nbsp;&amp;nbsp; end do:
&amp;nbsp;&amp;nbsp; close(outfile);
&lt;/pre&gt;
&lt;p&gt;The resulting .csv (comma-separated values) file should be readable by any version of Excel (or any other modern spreadsheet, for that matter)..&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;It's not necessary to create the directory: I'm just assuming you want to put the file into some directory somewhere (probably one that you already have).&lt;/p&gt;
&lt;p&gt;In this case there's no reason to extract the data from a plot, especially since plot (as opposed to plot3d) does not divide the interval into equal subintervals.&amp;nbsp; You can do something like this:&lt;/p&gt;
&lt;pre&gt;
&amp;gt; outfile := &amp;quot;c:/tmp/myfile.csv&amp;quot;:
&amp;nbsp;&amp;nbsp; for i from 350 to 1500 do
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; fprintf(outfile, &amp;quot;%d,%f\n&amp;quot;, i, n(i)); 
&amp;nbsp;&amp;nbsp; end do:
&amp;nbsp;&amp;nbsp; close(outfile);
&lt;/pre&gt;
&lt;p&gt;The resulting .csv (comma-separated values) file should be readable by any version of Excel (or any other modern spreadsheet, for that matter)..&lt;/p&gt;</description>
      <guid>64744</guid>
      <pubDate>Wed, 22 Jul 2009 00:50:17 Z</pubDate>
      <itunes:author>Robert Israel</itunes:author>
      <author>Robert Israel</author>
    </item>
  </channel>
</rss>