<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 311: [6.0.0] `fit` finicky about the range</title><link href="https://sourceforge.net/p/gnuplot/support-requests/311/" rel="alternate"/><link href="https://sourceforge.net/p/gnuplot/support-requests/311/feed.atom" rel="self"/><id>https://sourceforge.net/p/gnuplot/support-requests/311/</id><updated>2025-12-17T04:25:20.711000Z</updated><subtitle>Recent changes to 311: [6.0.0] `fit` finicky about the range</subtitle><entry><title>#311 [6.0.0] `fit` finicky about the range</title><link href="https://sourceforge.net/p/gnuplot/support-requests/311/?limit=25#b046" rel="alternate"/><published>2025-12-17T04:25:20.711000Z</published><updated>2025-12-17T04:25:20.711000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.netf67b7b2be3b4c4a7b45157fb252cdb86d5acc954</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket moved from /p/gnuplot/bugs/2735/&lt;/p&gt;
&lt;p&gt;Can't be converted:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;_milestone&lt;/strong&gt;: &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;_priority&lt;/strong&gt;: &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#2735 [6.0.0] `fit` finicky about the range</title><link href="https://sourceforge.net/p/gnuplot/bugs/2735/?limit=25#dd22/95fb" rel="alternate"/><published>2024-09-18T12:39:44.616000Z</published><updated>2024-09-18T12:39:44.616000Z</updated><author><name>Ilya Zakharevich</name><uri>https://sourceforge.net/u/ilya-z/</uri></author><id>https://sourceforge.net901d32345bd659f4543a0a60ff9121604c276325</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;There are several issues here. It looks like you expecting the program to figure out that it should generate appropriate samples spanning the range of '+'. &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Yes, this was a user’s error.  However, many issues triggered by the code abpve (and by your remarks) still remain.  I will address them one-by-one.¹⁾&lt;/p&gt;
&lt;p&gt;¹⁾ Here I decided to answer by collecting many not-related issues in one message.  Since I sit on dozens of gnuplot bugs, let me know which format of discussion is more convenient to you in the future.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;In the absence of a trange specifier the program will thus generate uniform (equal interval) samples along the default xrange, which is &lt;span&gt;[-10:10]&lt;/span&gt;. &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Right now I can see this indeed:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;gnuplot&amp;gt; show trange

        set trange [ &lt;span class="gs"&gt;* : *&lt;/span&gt; ] noreverse nowriteback  # (currently [-10.0000:10.0000] )
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;But a few days ago it would show the “rurrent” range as &lt;code&gt;[-5:5]&lt;/code&gt; (on a freshly started &lt;code&gt;gnuplot&lt;/code&gt;).  Go figure!&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;gnuplot&amp;gt; set xrange [1.e9:1.e13]&lt;/code&gt;&lt;br/&gt;
&lt;code&gt;gnuplot&amp;gt; fit [1e9:1e13] a1+x '+' u 1:1 via a1&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Why &lt;code&gt;set xrange&lt;/code&gt; is needed when the &lt;code&gt;fit&lt;/code&gt; command specifies the &lt;em&gt;x&lt;/em&gt;-range explicitly?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;code&gt;Singular matrix in Invert_RtR&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This is a linear fit with coefficient 1.  AFAIU, the Jacobian should be a 1×1 identity matrix.  Why a problem to invert it?!&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;the fit fails because the default initial value of a1 is 1.0 and the function being fit makes no sense.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Which function makes no sense?  I fit &lt;em&gt;F&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;) ⁻≡ &lt;em&gt;x&lt;/em&gt;  by &lt;em&gt;f&lt;/em&gt;(&lt;em&gt;x&lt;/em&gt;,&lt;em&gt;a&lt;/em&gt;) ⁻≡ &lt;em&gt;x&lt;/em&gt;+&lt;em&gt;a&lt;/em&gt;.   Which of them do you mean here?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Without a reasonable function to fit I can't take the analysis any further than that.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;How come a linear function with coefficient 1 is not “reasonable”?  Is it related²⁾ to &lt;a class="" href="https://sourceforge.net/p/gnuplot/bugs/2643/"&gt;#2643 The FIT command fails in gnuplot Ver.5.4.8 on Windows 7 64-bit platform&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;²⁾ Finally, I was able to make the fit I need in &lt;code&gt;octave&lt;/code&gt;.  It had similar problems, but it was a bit easier to debug.  Judging by this experience, I would try to list the following (conjectural, undocumented) properties of the algorithm used by &lt;code&gt;fit&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The independent variables (like &lt;code&gt;x&lt;/code&gt; and &lt;code&gt;y&lt;/code&gt;) in the datafile should be of approximately of the same magnitude (say, within a factor of 1,000).&lt;/li&gt;
&lt;li&gt;The dependent variable (like &lt;code&gt;z&lt;/code&gt;) in the datafile should be of approximately the same magnitude as the dependent variables.&lt;/li&gt;
&lt;li&gt;Same for the &lt;code&gt;via&lt;/code&gt; parameters one is looking for.&lt;/li&gt;
&lt;li&gt;The gradient of the “misfit” w.r.t. the parameter variables should &lt;strong&gt;also&lt;/strong&gt; be of the same magnitude.³⁾&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;³⁾ This part is not clear to me: “in which units” should one measure the gradient?  Is it just d&lt;em&gt;T&lt;/em&gt;/d&lt;em&gt;a&lt;/em&gt;?  But what is the “target function” &lt;em&gt;T&lt;/em&gt;?  The square of the ℒ₂-norm of the misfit?  Then this changes as one gets closer to the solution…  Go figure again!&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;you can't set log-scaling on the sample axis (no &lt;code&gt;set log t&lt;/code&gt; command).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Is there a reason for this?&lt;/p&gt;
&lt;p&gt;&lt;code&gt;⁜⁜⁜⁜⁜⁜⁜⁜⁜⁜⁜⁜⁜⁜⁜⁜⁜⁜⁜⁜⁜⁜&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Additionally, when working over your answer(s), I found many issues in the docs.  But this message gets too long, so I will try to discuss this later.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#2735 [6.0.0] `fit` finicky about the range</title><link href="https://sourceforge.net/p/gnuplot/bugs/2735/?limit=25#dd22" rel="alternate"/><published>2024-09-06T19:40:28.522000Z</published><updated>2024-09-06T19:40:28.522000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.net63f2b94d85b871ffc67c44f23e825b18c747a4fa</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Second attempt at a response.  Just forget about anything I said the first time around.&lt;/p&gt;
&lt;p&gt;I never use in-line ranges myself, so I always get confused when I see them as to exactly what they apply to.  Unfortunately this confusion may extend to what the program thinks it means and what the user thinks it means.&lt;/p&gt;
&lt;p&gt;There are several issues here.  It looks like you expecting the program to figure out that it should generate appropriate samples spanning the range of '+'.    This doesn't happen for your minimal example because neither the sampling range (&lt;code&gt;trange&lt;/code&gt;) nor &lt;code&gt;xrange&lt;/code&gt; and no log-scaling is in effect.   In the absence of a &lt;code&gt;trange&lt;/code&gt; specifier the program will thus generate uniform (equal interval) samples along the default &lt;code&gt;xrange&lt;/code&gt;, which is &lt;span&gt;[-10:10]&lt;/span&gt;.  All of these samples lie outside the fitting range &lt;code&gt;[1.e9:1.e13]&lt;/code&gt;.   Thus the error message you see.&lt;/p&gt;
&lt;p&gt;So the first fix is to make the sampling range match the desired fit range.  Usually this would mean&lt;br/&gt;
&lt;code&gt;set trange [1.e9 : 1.e13]&lt;/code&gt;  but that isn't going to work here because you can't set log-scaling on the sample axis (no &lt;code&gt;set log t&lt;/code&gt; command).  So instead you have to leave &lt;code&gt;trange&lt;/code&gt; unspecified and set &lt;code&gt;xrange&lt;/code&gt; instead.   Also you need to specify log-scaling on x.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;gnuplot&amp;gt; set log x
gnuplot&amp;gt; set xrange [1.e9:1.e13]
gnuplot&amp;gt; fit [1e9:1e13] a1+x '+' u 1:1 via a1
iter      chisq       delta/lim  lambda   a1           
   0 9.8000000000e+01   0.00e+00  1.01e+00    1.000000e+00
   1 4.4050066605e-02  -2.22e+08  1.01e-01    2.118430e-02
   2 6.4510639618e-04  -6.73e+06  1.01e-02    2.559278e-03
   3 1.1962247822e-04  -4.39e+05  1.01e-03    1.103984e-03
   4 4.2138106664e-05  -1.84e+05  1.01e-04    6.335908e-04
   5 1.0124258324e-05  -3.16e+05  1.01e-05    3.198809e-04
   6 2.7051376037e-06  -2.74e+05  1.01e-06    1.786574e-04
   7 1.8320206436e-06  -4.77e+04  1.01e-07    1.393422e-04
   8 6.3236075221e-07  -1.90e+05  1.01e-08    8.961254e-05
   9 6.1250511862e-07  -3.24e+03  1.01e-09    8.755145e-05
  10 2.1990126697e-07  -1.79e+05  1.01e-10    5.542007e-05
  11 1.3118756215e-07  -6.76e+04  1.01e-11    4.256261e-05
  12 1.3118756215e-07   0.00e+00  1.01e-12    4.256261e-05
         Singular matrix in Invert_RtR
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;No range problems now, but the fit fails because the default initial value of a1 is 1.0 and the function being fit makes no sense.   The next step would be to pick a more reasonable starting value for a1.  Now you get this:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="nv"&gt;gnuplot&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;set&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;log&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;x&lt;/span&gt;
&lt;span class="nv"&gt;gnuplot&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;set&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;xrange&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;[&lt;span class="mi"&gt;1&lt;/span&gt;.&lt;span class="nv"&gt;e9&lt;/span&gt;:&lt;span class="mi"&gt;1&lt;/span&gt;.&lt;span class="nv"&gt;e13&lt;/span&gt;]
&lt;span class="nv"&gt;gnuplot&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;a1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;.&lt;span class="mi"&gt;0&lt;/span&gt;
&lt;span class="nv"&gt;gnuplot&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;fit&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;[&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="nv"&gt;e9&lt;/span&gt;:&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="nv"&gt;e13&lt;/span&gt;]&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;a1&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="nv"&gt;x&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'+'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;u&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;:&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;via&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;a1&lt;/span&gt;
&lt;span class="nv"&gt;Warning&lt;/span&gt;:&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;Initial&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;value&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;of&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;parameter&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s1"&gt;'a1'&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;is&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;zero&lt;/span&gt;.
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nv"&gt;Please&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;provide&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;non&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;zero&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;initial&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;values&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;for&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;parameters&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;at&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;least&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;of&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nv"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;right&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;order&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;of&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;magnitude&lt;/span&gt;.&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;If&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;expected&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;value&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;is&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;zero&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;then&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;use&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nv"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;magnitude&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;of&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;expected&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;error&lt;/span&gt;.&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;If&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;all&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;fails&lt;/span&gt;,&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;try&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;.&lt;span class="mi"&gt;0&lt;/span&gt;

&lt;span class="nv"&gt;iter&lt;/span&gt;&lt;span class="w"&gt;      &lt;/span&gt;&lt;span class="nv"&gt;chisq&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="nv"&gt;delta&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;lim&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="nv"&gt;lambda&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="nv"&gt;a1&lt;/span&gt;&lt;span class="w"&gt;           &lt;/span&gt;
&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;.&lt;span class="mi"&gt;0000000000&lt;/span&gt;&lt;span class="nv"&gt;e&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;00&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;nan&lt;/span&gt;&lt;span class="w"&gt;       &lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;.&lt;span class="mi"&gt;00&lt;/span&gt;&lt;span class="nv"&gt;e&lt;/span&gt;&lt;span class="o"&gt;+&lt;/span&gt;&lt;span class="mi"&gt;00&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;.&lt;span class="mi"&gt;000000&lt;/span&gt;&lt;span class="nv"&gt;e&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;30&lt;/span&gt;
&lt;span class="w"&gt;         &lt;/span&gt;&lt;span class="nv"&gt;Singular&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;matrix&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;in&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;Givens&lt;/span&gt;&lt;span class="ss"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Without a reasonable function to fit I can't take the analysis any further than that.&lt;/p&gt;
&lt;p&gt;hope that helps&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#2735 [6.0.0] `fit` finicky about the range</title><link href="https://sourceforge.net/p/gnuplot/bugs/2735/?limit=25#6b05" rel="alternate"/><published>2024-09-06T16:36:44.418000Z</published><updated>2024-09-06T16:36:44.418000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.net0231a2d2a8e4205b75e9991cb62bfe70c46f2299</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open-not-a-bug --&amp;gt; open&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>#2735 [6.0.0] `fit` finicky about the range</title><link href="https://sourceforge.net/p/gnuplot/bugs/2735/?limit=25#d34f/5bfb" rel="alternate"/><published>2024-09-06T16:36:16.231000Z</published><updated>2024-09-06T16:36:16.231000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.net3fdace45bdc0ef071e45cf2e62fb744e0cbfcc21</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;My apologies.  I did not think this through correctly.  On second thought I agree with you that x should stay in range even when the requested fit makes little sense.  &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#2735 [6.0.0] `fit` finicky about the range</title><link href="https://sourceforge.net/p/gnuplot/bugs/2735/?limit=25#3077" rel="alternate"/><published>2024-09-06T15:57:24.992000Z</published><updated>2024-09-06T15:57:24.992000Z</updated><author><name>Ethan Merritt</name><uri>https://sourceforge.net/u/sfeam/</uri></author><id>https://sourceforge.net1cb43570591e64ba11f8547cf3849187f912f932</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; open-not-a-bug&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Group&lt;/strong&gt;:  --&amp;gt; &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Priority&lt;/strong&gt;:  --&amp;gt; &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</summary></entry><entry><title>[6.0.0] `fit` finicky about the range</title><link href="https://sourceforge.net/p/gnuplot/bugs/2735/" rel="alternate"/><published>2024-09-06T08:41:43.254000Z</published><updated>2024-09-06T08:41:43.254000Z</updated><author><name>Ilya Zakharevich</name><uri>https://sourceforge.net/u/ilya-z/</uri></author><id>https://sourceforge.netc57c664692b0c3c4076dc6e65deb822aeedc8d7d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;gnuplot&amp;gt; fit [1e9:1e13] a1+x '+' u 1:($1) via a1
         Read 100 points
         Skipped 100 points outside range [x=1e+09:1e+13]
         No data to fit
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;(To add insult to injury, sometimes a very similar command would report a different number of points &lt;span&gt;[like 50 or 69]&lt;/span&gt; — all skipped.)&lt;/p&gt;
&lt;p&gt;It works OK¹⁾ with many ranges, like &lt;code&gt;[1e20:1e23]&lt;/code&gt; or &lt;code&gt;[1:1e4]&lt;/code&gt;.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;¹⁾&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Within&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;the&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;usual&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;flackiness&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="k"&gt;of&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n n-Quoted"&gt;`fit`&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</summary></entry><entry><title>[6.0.0] `fit` finicky about the range</title><link href="https://sourceforge.net/p/gnuplot/bugs/2735/" rel="alternate"/><published>2024-09-06T08:41:43.254000Z</published><updated>2024-09-06T08:41:43.254000Z</updated><author><name>Ilya Zakharevich</name><uri>https://sourceforge.net/u/ilya-z/</uri></author><id>https://sourceforge.net2fd1a18258dd906324cf05f45c09869eddbc122f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 2735 has been modified: &lt;span&gt;[6.0.0]&lt;/span&gt; &lt;code&gt;fit&lt;/code&gt; finicky about the range&lt;br/&gt;
Edited By: Ethan Merritt (sfeam)&lt;br/&gt;
Status updated: 'open' =&amp;gt; 'open-not-a-bug'&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>[6.0.0] `fit` finicky about the range</title><link href="https://sourceforge.net/p/gnuplot/bugs/2735/" rel="alternate"/><published>2024-09-06T08:41:43.254000Z</published><updated>2024-09-06T08:41:43.254000Z</updated><author><name>Ilya Zakharevich</name><uri>https://sourceforge.net/u/ilya-z/</uri></author><id>https://sourceforge.net6ed2dbfa8c95a3e0d1781e31568b50cf67f69646</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 2735 has been modified: &lt;span&gt;[6.0.0]&lt;/span&gt; &lt;code&gt;fit&lt;/code&gt; finicky about the range&lt;br/&gt;
Edited By: Ethan Merritt (sfeam)&lt;br/&gt;
Status updated: 'open-not-a-bug' =&amp;gt; 'open'&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>