[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuplot-info
Subject:    [Gnuplot-info] Log scale not working?
From:       zweifel <zweifel () gmail ! com>
Date:       2010-05-14 2:49:34
Message-ID: AANLkTilLfnMuLlNE1OqK1vlrR6JMkG63i1b6q0yKRzhx () mail ! gmail ! com
[Download RAW message or body]

Hi guys,

I plotted a function with a regression and it worked fine as it could be
seen on the figure out2.png, but when I tried to plot this same function
with logscale, that is, I just added "set logscale xy" to my script, then
the out.png appeared. But it did not seem right.

I am also pasting my script below:
#!/usr/bin/gnuplot
reset
set logscale xy
set xlabel "Problem Size"
set ylabel "Function Evaluations"
set terminal postscript enhanced
set style data points
set samples 1000
set origin 0,0
set title
f(x) = (a)*(x**e)*(log(x)/log(2))
g(x) = (k2)*(x**d)*(log(x)/log(2))
h(x) = (k3)*(x**c)*(log(x)/log(2))
fit f(x) "comparison" using 1:2 via e,a
fit g(x) "comparison" using 1:3 via d,k2
fit h(x) "comparison" using 1:4 via c,k3

plot [:][:] "comparison" using 1:2 noti "ECGA", \
f(x) title "ECGA: O(m^{1.92}*log_2(m))", \
"comparison" using 1:3 notitle "PhGA-a", \
g(x) title "PhGA-a: O(m^{1.18}*log_2(m))", \
"comparison" using 1:4 notitle "PhGA-b", \
h(x) title "PhGA-b: O(m^{0.99}*log_2(m))"

Thanks in advance,
-- 

Danilo


------------------------------------------------------------------------------



_______________________________________________
gnuplot-info mailing list
gnuplot-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuplot-info


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic