<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 444: option for "set fit" to change MAX_DATA</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/444/" rel="alternate"/><link href="https://sourceforge.net/p/gnuplot/feature-requests/444/feed.atom" rel="self"/><id>https://sourceforge.net/p/gnuplot/feature-requests/444/</id><updated>2016-05-13T17:29:34.243000Z</updated><subtitle>Recent changes to 444: option for "set fit" to change MAX_DATA</subtitle><entry><title>#444 option for "set fit" to change MAX_DATA</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/444/?limit=100#2f50" rel="alternate"/><published>2016-05-13T17:29:34.243000Z</published><updated>2016-05-13T17:29:34.243000Z</updated><author><name>Bastian Märkisch</name><uri>https://sourceforge.net/u/markisch/</uri></author><id>https://sourceforge.net944e1abac1982612ac43a325f94ec72198b16372</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: pending-accepted --&amp;gt; closed-fixed&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#444 option for "set fit" to change MAX_DATA</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/444/?limit=100#249c/d4b3/eb56" rel="alternate"/><published>2016-05-13T17:29:08.763000Z</published><updated>2016-05-13T17:29:08.763000Z</updated><author><name>Bastian Märkisch</name><uri>https://sourceforge.net/u/markisch/</uri></author><id>https://sourceforge.net55e579a4673b845172a5977c5a30f7a38958e290</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;OK. Done.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#444 option for "set fit" to change MAX_DATA</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/444/?limit=25#249c/d4b3" rel="alternate"/><published>2016-05-13T17:23:11.659000Z</published><updated>2016-05-13T17:23:11.659000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.net951e708bc4b6384128457435cb378d173ded7540</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Sure.  Might as weel go into 5.0 also.  I don't see any down-side.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#444 option for "set fit" to change MAX_DATA</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/444/?limit=100#1098" rel="alternate"/><published>2016-05-13T14:12:31.551000Z</published><updated>2016-05-13T14:12:31.551000Z</updated><author><name>Bastian Märkisch</name><uri>https://sourceforge.net/u/markisch/</uri></author><id>https://sourceforge.net0497e4d5b41d3e86454ed3c46568598f74498407</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; pending-accepted&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#444 option for "set fit" to change MAX_DATA</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/444/?limit=25#e68a/9cfc" rel="alternate"/><published>2016-05-10T18:10:26.569000Z</published><updated>2016-05-10T18:10:26.569000Z</updated><author><name>Hans-Bernhard Broeker</name><uri>https://sourceforge.net/u/broeker/</uri></author><id>https://sourceforge.net39bbd46015a2bf1cea8b3061bb60c76eb49d4c1e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Well, as it is, 2048 data points already eat more than 64 KiB, what with there being 6 arrays of at least 2048 doubles if you go there. That's 96 KiB, and yes, that quite hard to support for a 16-bit platform, which was still supported back then.&lt;/p&gt;
&lt;p&gt;And there's a reason why the factor is 1.5 instead of 2, too.  Back when that factor was set (by myself, IIRC), the maths part would allocate a matrix of (num_data * num_data) elements, so a growth by 2 would actually increase the memory usage by a factor of &lt;strong&gt;4&lt;/strong&gt;.   So I chose 1.5, which yields an effective resize of 2.25.  The underlying solver has changed in the meantime, so memory consumption is now linear in num_data.  That means a factor of 2 would be sensible now.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#444 option for "set fit" to change MAX_DATA</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/444/?limit=100#2174" rel="alternate"/><published>2016-05-10T16:25:39.923000Z</published><updated>2016-05-10T16:25:39.923000Z</updated><author><name>Bastian Märkisch</name><uri>https://sourceforge.net/u/markisch/</uri></author><id>https://sourceforge.neta130ca9843a9a4c735637977ceb2b1f65e3b535d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Here's the equivalent code section from &lt;code&gt;plot2d.c&lt;/code&gt;:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    while ((j = df_readline(v, max_cols)) != DF_EOF) {

        if (i &amp;gt;= current_plot-&amp;gt;p_max) {
            /* overflow about to occur. Extend size of points[]
             * array. Double the size, and add 1000 points, to avoid
             * needlessly small steps. */
            cp_extend(current_plot, i + i + 1000);
        }
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;No message whatsoever. Plus a more "agressive" extension &lt;code&gt;2*n+1000&lt;/code&gt; instead of &lt;code&gt;(n*3)/2&lt;/code&gt;.&lt;br/&gt;
I propose to adopt the code in &lt;code&gt;fit.c&lt;/code&gt; accordingly.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#444 option for "set fit" to change MAX_DATA</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/444/?limit=25#e68a/4c3a" rel="alternate"/><published>2016-05-10T16:16:55.575000Z</published><updated>2016-05-10T16:16:55.575000Z</updated><author><name>Karl Ratzsch</name><uri>https://sourceforge.net/u/kf2402/</uri></author><id>https://sourceforge.netc8bf8a779700f63b8965e40a266f4dc2de879816</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I guess something like 64k would be a sensible change to the default of MAX_DATA = 2048. I cannot ascertain if it would be hard to do this in a dynamic fashion. &lt;code&gt;plot&lt;/code&gt; does not have a hard-set limit, so it should be possible, i guess.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#444 option for "set fit" to change MAX_DATA</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/444/?limit=25#ec41" rel="alternate"/><published>2016-05-10T16:12:50.593000Z</published><updated>2016-05-10T16:12:50.593000Z</updated><author><name>Karl Ratzsch</name><uri>https://sourceforge.net/u/kf2402/</uri></author><id>https://sourceforge.net1a4c2e9956baa5c02250ae8c595b38917583744d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Coincidentally, I discovered that post half an hour ago and am currently installing msys2. :-)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#444 option for "set fit" to change MAX_DATA</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/444/?limit=100#fc1a" rel="alternate"/><published>2016-05-10T16:09:04.947000Z</published><updated>2016-05-10T16:09:04.947000Z</updated><author><name>Bastian Märkisch</name><uri>https://sourceforge.net/u/markisch/</uri></author><id>https://sourceforge.net07c0071362f3fe6a9ef934353a8559816791d2b3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Btw. thanks to MSYS2/Mingw64 compilation is now almost as pain-free on Windows as it is on *nix, see &lt;a class="alink" href="/p/gnuplot/support-requests/199/"&gt;[support-requests:#199]&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#444 option for "set fit" to change MAX_DATA</title><link href="https://sourceforge.net/p/gnuplot/feature-requests/444/?limit=100#e68a" rel="alternate"/><published>2016-05-10T16:04:47.578000Z</published><updated>2016-05-10T16:04:47.578000Z</updated><author><name>Bastian Märkisch</name><uri>https://sourceforge.net/u/markisch/</uri></author><id>https://sourceforge.net1118d81cdf774f2f6cabcd98ad7e7f1105b0ee7b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;These limits look like they come from an age when 64kB were a lot...  Couldn't we just eliminate this warning/info message - or at least only emit it for really sizeable datasets? &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>