Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3567

Strange thing about logscale after a fit ?

X-Received by 10.129.103.134 with SMTP id b128mr3458423ywc.14.1488996432281; Wed, 08 Mar 2017 10:07:12 -0800 (PST)
X-Received by 10.157.82.47 with SMTP id e47mr1097674oth.18.1488996432241; Wed, 08 Mar 2017 10:07:12 -0800 (PST)
Path csiph.com!xmission!news.glorb.com!w124no1160572itb.0!news-out.google.com!78ni8228itm.0!nntp.google.com!w124no1160565itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.graphics.apps.gnuplot
Date Wed, 8 Mar 2017 10:07:12 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=90.54.225.14; posting-account=zFNeegoAAABhytSqsm48qkJZ3P2KE-2e
NNTP-Posting-Host 90.54.225.14
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <24ea3aba-292c-4afb-a4a8-59685203a23f@googlegroups.com> (permalink)
Subject Strange thing about logscale after a fit ?
From Vincent Gouret <vincentgouret44@gmail.com>
Injection-Date Wed, 08 Mar 2017 18:07:12 +0000
Content-Type text/plain; charset=UTF-8
Xref csiph.com comp.graphics.apps.gnuplot:3567

Show key headers only | View raw


Hello all,

I have a strange result for plotting data in logscale. The file I use contains
this:
--------------------
temps_gauss.txt:

5	100000	4
6	69444	4
7	51020	4
9	30863	5
10	24999	5
12	17360	6
13	14791	7
16	9764	9
18	7714	11
21	5667	15
25	3998	22
29	2971	31
34	2161	47
40	1561	70
47	1130	110
55	825	157
64	609	232
75	443	361
88	321	552
103	234	822
120	172	1281
141	124	2031
165	90	3148
193	65	4941
227	46	7883
265	33	12483
311	23	19784
364	16	31094
427	11	50103
501	7	80055
----------------------
The first colum is the size of a linear problem, the second is the number of random problems of this size and the last is the mean execution time in us.
The linear problem is solve using the Gauss algorithm. I plot this result in Gnuplot with:
plot 'temps_gauss.txt' u 1:3 w p
It work fine. If I want to see the same plot with logscale, I do this:
set logscale
and when I redo the plot, all goes fine. After that, I do a fit like that:
f(x)=alpha*x**3
fit f(x) 'temps_gauss.txt' u 1:3 via alpha
This works well and give me a value for alpha=6.4e-4, fine. Then I plot the datas and the model, and at this time it does not work:
plot 'temps_gauss.txt' u 1:3 w p, f(x) w l
This give me the error:
 color axis has cb coord of 0; must be above 0 for log scale!
If I stop gnuplot, and relaunch it, and type:
f(x)=alpha*x**3
set logscale
alpha=6.4e-4
plot 'temps_gauss.txt' u 1:3 w p, f(x) w l
then all goes fine ??? What is the problem ? I use gnuplot V5 patchlevel 4, under Windows 8.1 or V5 patchlevel 3 under Lubuntu 16.04.2, the same...

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

Strange thing about logscale after a fit ? Vincent Gouret <vincentgouret44@gmail.com> - 2017-03-08 10:07 -0800
  Re: Strange thing about logscale after a fit ? Ethan A Merritt <sfeam@users.sourceforge.net> - 2017-03-08 11:01 -0800
    Re: Strange thing about logscale after a fit ? Vincent Gouret <vincentgouret44@gmail.com> - 2017-03-08 11:16 -0800

csiph-web