<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, How to extract data from a contour plot?</title>
    <link>http://www.mapleprimes.com/questions/138108-How-To-Extract-Data-From-A-Contour-Plot</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:39:49 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 17:39:49 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, How to extract data from a contour plot?</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, How to extract data from a contour plot?</title>
      <link>http://www.mapleprimes.com/questions/138108-How-To-Extract-Data-From-A-Contour-Plot</link>
    </image>
    <item>
      <title>By getdata command</title>
      <link>http://www.mapleprimes.com/questions/138108-How-To-Extract-Data-From-A-Contour-Plot?ref=Feed:MaplePrimes:How to extract data from a contour plot?:Comments#answer138109</link>
      <itunes:summary>&lt;p&gt;It can be done as follows.&lt;br&gt;&amp;gt; p := contourplot(x*F1, x = -3 .. 3, eta = -.2 .. .2):&lt;br&gt;&amp;gt; d := [plottools:-getdata(p)];&lt;br&gt;&amp;gt; nops(d);&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 664&lt;br&gt;&amp;gt; a := [seq(convert(d[j, 3][1], list), j = 1 .. 664),&lt;br&gt;seq(convert(d[j, 3][2], list), j = 1 .. 664)]:&lt;br&gt;#We skip the unnecessary information in the list d, remaining only the coordinates of the points.&lt;br&gt;#Because these are stored as Vectors, we convert the ones to lists. You may order a in need.&lt;br&gt;&amp;gt; writedata("c:/data.txt", a);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;It can be done as follows.&lt;br&gt;&amp;gt; p := contourplot(x*F1, x = -3 .. 3, eta = -.2 .. .2):&lt;br&gt;&amp;gt; d := [plottools:-getdata(p)];&lt;br&gt;&amp;gt; nops(d);&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 664&lt;br&gt;&amp;gt; a := [seq(convert(d[j, 3][1], list), j = 1 .. 664),&lt;br&gt;seq(convert(d[j, 3][2], list), j = 1 .. 664)]:&lt;br&gt;#We skip the unnecessary information in the list d, remaining only the coordinates of the points.&lt;br&gt;#Because these are stored as Vectors, we convert the ones to lists. You may order a in need.&lt;br&gt;&amp;gt; writedata("c:/data.txt", a);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>138109</guid>
      <pubDate>Tue, 09 Oct 2012 12:11:31 Z</pubDate>
      <itunes:author>Markiyan Hirnyk</itunes:author>
      <author>Markiyan Hirnyk</author>
    </item>
    <item>
      <title>But why do it?</title>
      <link>http://www.mapleprimes.com/questions/138108-How-To-Extract-Data-From-A-Contour-Plot?ref=Feed:MaplePrimes:How to extract data from a contour plot?:Comments#answer138110</link>
      <itunes:summary>&lt;p&gt;I wonder why you would want to do it, but certainly getdata will get you the data:&lt;/p&gt;
&lt;p&gt;contourplot(x*F1,x=-3..3,eta=-0.2..0.2);&lt;br&gt;dat:=plottools:-getdata(%):&lt;br&gt;dm:=op(op~(3,[dat])):&lt;br&gt;M:=&amp;lt;dm&amp;gt;;&lt;br&gt;#Notice that if you plot M by plot(M); you get connecting lines unless you ask for style=point, whereas plotting [dm] doesn't.&lt;br&gt;plot([dm]);&lt;br&gt;#You can use ExportMatrix to export M and ImportMatrix to get it back. The sequence dm is easily recovered from M:&lt;br&gt;dm[1..10];&lt;br&gt;seq(M[i..i+1,1..2],i=1..20,2);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;I wonder why you would want to do it, but certainly getdata will get you the data:&lt;/p&gt;
&lt;p&gt;contourplot(x*F1,x=-3..3,eta=-0.2..0.2);&lt;br&gt;dat:=plottools:-getdata(%):&lt;br&gt;dm:=op(op~(3,[dat])):&lt;br&gt;M:=&amp;lt;dm&amp;gt;;&lt;br&gt;#Notice that if you plot M by plot(M); you get connecting lines unless you ask for style=point, whereas plotting [dm] doesn't.&lt;br&gt;plot([dm]);&lt;br&gt;#You can use ExportMatrix to export M and ImportMatrix to get it back. The sequence dm is easily recovered from M:&lt;br&gt;dm[1..10];&lt;br&gt;seq(M[i..i+1,1..2],i=1..20,2);&lt;br&gt;&lt;br&gt;&lt;/p&gt;</description>
      <guid>138110</guid>
      <pubDate>Tue, 09 Oct 2012 12:38:09 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>increase grid size</title>
      <link>http://www.mapleprimes.com/questions/138108-How-To-Extract-Data-From-A-Contour-Plot?ref=Feed:MaplePrimes:How to extract data from a contour plot?:Comments#answer138120</link>
      <itunes:summary>&lt;p&gt;It is good you used grid=[100,100] as the default is 25 but why don't you increase your grid size to 1000 or more?&amp;nbsp; That should increase your resolution.&lt;/p&gt;
&lt;p&gt;Also maybe use contours=# option to fix the number of contours being drawn. &lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;It is good you used grid=[100,100] as the default is 25 but why don't you increase your grid size to 1000 or more?&amp;nbsp; That should increase your resolution.&lt;/p&gt;
&lt;p&gt;Also maybe use contours=# option to fix the number of contours being drawn. &lt;/p&gt;</description>
      <guid>138120</guid>
      <pubDate>Tue, 09 Oct 2012 17:00:13 Z</pubDate>
      <itunes:author>Christopher2222</itunes:author>
      <author>Christopher2222</author>
    </item>
    <item>
      <title>The reason</title>
      <link>http://www.mapleprimes.com/questions/138108-How-To-Extract-Data-From-A-Contour-Plot?ref=Feed:MaplePrimes:How to extract data from a contour plot?:Comments#comment138113</link>
      <itunes:summary>&lt;p&gt;First of all, I would like to thank both of you (@&lt;a href="http://www.mapleprimes.com/users/Markiyan%20Hirnyk"&gt;Markiyan Hirnyk&lt;/a&gt;&amp;nbsp;and @&lt;a href="http://www.mapleprimes.com/users/Preben%20Alsholm"&gt;Preben Alsholm&lt;/a&gt;) .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason is that I use another software for just plotting purpose,&lt;/p&gt;
&lt;p&gt;which gives me a very nice visual results.&lt;/p&gt;
&lt;p&gt;The problem is that &amp;nbsp;the output produced by maple is not that good&lt;/p&gt;
&lt;p&gt;(maybe bcoz of my lack of understanding).&lt;/p&gt;
&lt;p&gt;Forexample&lt;/p&gt;
&lt;p&gt;contourplot(p(x)(y),x=-4.0..4,y=-1.5..1.5,grid=[100,100]);&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=138113/444064/11.jpg"&gt;&lt;img src="/view.aspx?sf=138113/444064/11.jpg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here you can see, the output is not that clear. And I do not know how to choose&amp;nbsp;&lt;/p&gt;
&lt;p&gt;a more visible color and also how to change the labels and to make it more bright.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;P.S. As you mentined about the&amp;nbsp;&lt;span&gt;&amp;nbsp;"connecting lines", bcoz of that I can not use the&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;data more freely (restricted to point style).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;First of all, I would like to thank both of you (@&lt;a href="http://www.mapleprimes.com/users/Markiyan%20Hirnyk"&gt;Markiyan Hirnyk&lt;/a&gt;&amp;nbsp;and @&lt;a href="http://www.mapleprimes.com/users/Preben%20Alsholm"&gt;Preben Alsholm&lt;/a&gt;) .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason is that I use another software for just plotting purpose,&lt;/p&gt;
&lt;p&gt;which gives me a very nice visual results.&lt;/p&gt;
&lt;p&gt;The problem is that &amp;nbsp;the output produced by maple is not that good&lt;/p&gt;
&lt;p&gt;(maybe bcoz of my lack of understanding).&lt;/p&gt;
&lt;p&gt;Forexample&lt;/p&gt;
&lt;p&gt;contourplot(p(x)(y),x=-4.0..4,y=-1.5..1.5,grid=[100,100]);&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=138113/444064/11.jpg"&gt;&lt;img src="/view.aspx?sf=138113/444064/11.jpg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here you can see, the output is not that clear. And I do not know how to choose&amp;nbsp;&lt;/p&gt;
&lt;p&gt;a more visible color and also how to change the labels and to make it more bright.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;P.S. As you mentined about the&amp;nbsp;&lt;span&gt;&amp;nbsp;"connecting lines", bcoz of that I can not use the&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;data more freely (restricted to point style).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>138113</guid>
      <pubDate>Tue, 09 Oct 2012 13:37:44 Z</pubDate>
      <itunes:author>J4James</itunes:author>
      <author>J4James</author>
    </item>
    <item>
      <title>Not restricted to point style</title>
      <link>http://www.mapleprimes.com/questions/138108-How-To-Extract-Data-From-A-Contour-Plot?ref=Feed:MaplePrimes:How to extract data from a contour plot?:Comments#comment138119</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/138108-How-To-Extract-Data-From-A-Contour-Plot#comment138113"&gt;@J4James&lt;/a&gt; You are restricted to point style only if you plot M as is. And that would only be relevant if you imported M from a file. But then, as I said, you can recover the sequence dm, which was constructed directly from the plot data. &lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/138108-How-To-Extract-Data-From-A-Contour-Plot#comment138113"&gt;@J4James&lt;/a&gt; You are restricted to point style only if you plot M as is. And that would only be relevant if you imported M from a file. But then, as I said, you can recover the sequence dm, which was constructed directly from the plot data. &lt;/p&gt;</description>
      <guid>138119</guid>
      <pubDate>Tue, 09 Oct 2012 16:21:09 Z</pubDate>
      <itunes:author>Preben Alsholm</itunes:author>
      <author>Preben Alsholm</author>
    </item>
    <item>
      <title>memory allocation problem</title>
      <link>http://www.mapleprimes.com/questions/138108-How-To-Extract-Data-From-A-Contour-Plot?ref=Feed:MaplePrimes:How to extract data from a contour plot?:Comments#comment138147</link>
      <itunes:summary>&lt;p&gt;@&lt;a href="http://www.mapleprimes.com/users/Christopher2222"&gt;Christopher2222&lt;/a&gt;&amp;nbsp;As you suggested, I have increased the grid size and it gives me a&lt;/p&gt;
&lt;p&gt;more clear result.&amp;nbsp;There is a problem of&amp;nbsp;memory allocation, whenever I go beyond&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[500,500].&amp;nbsp;But this time the results are very good.&lt;/p&gt;
&lt;p&gt;contourplot(p(x)(y),x=-4.0..4,y=-1.5..1.5,grid=[400,400],&lt;/p&gt;
&lt;p&gt;contours=25,color=black,labels=["x","y"]);&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=138147/444130/1-eps.jpg"&gt;&lt;img src="/view.aspx?sf=138147/444130/1-eps.jpg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I choose to export the fig from maple as .eps, which gives a better visual output.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;@&lt;a href="http://www.mapleprimes.com/users/Christopher2222"&gt;Christopher2222&lt;/a&gt;&amp;nbsp;As you suggested, I have increased the grid size and it gives me a&lt;/p&gt;
&lt;p&gt;more clear result.&amp;nbsp;There is a problem of&amp;nbsp;memory allocation, whenever I go beyond&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[500,500].&amp;nbsp;But this time the results are very good.&lt;/p&gt;
&lt;p&gt;contourplot(p(x)(y),x=-4.0..4,y=-1.5..1.5,grid=[400,400],&lt;/p&gt;
&lt;p&gt;contours=25,color=black,labels=["x","y"]);&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=138147/444130/1-eps.jpg"&gt;&lt;img src="/view.aspx?sf=138147/444130/1-eps.jpg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I choose to export the fig from maple as .eps, which gives a better visual output.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description>
      <guid>138147</guid>
      <pubDate>Wed, 10 Oct 2012 07:13:04 Z</pubDate>
      <itunes:author>J4James</itunes:author>
      <author>J4James</author>
    </item>
  </channel>
</rss>