bug

View: New views
2 Messages — Rating Filter:   Alert me  

bug

by Thomas Fischer-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ladies and gentlemen,

the numbers on the ordinate above 1 are not correct.
I forgot to mention that I use gnuplot version 4.0.

Sincerely

Thomas Fischer

--
Dr. T. M. Fischer
Institut fuer Physiologie, RWTH-Aachen, D-52057 Aachen
phone: +49 241 80 88805
fax:   +49 241 8082 434




set term postscript enhanced eps "Times-Roman" 25; set output "grafik.ps"
#set time "%d/%m/%Y %H:%M"
set xlabel "x-unten ({/Symbol m}m) = in Wirklichkeit"
set ylabel "(2 x-unten) / (x-oben-links + x-oben-rechts)\n= prozentuale Abweichung auf dem CCD chip"
set xrange [:0.405]
set mxtics 10
set mytics 10
plot 'out.dat' using 3:(2*$3)/($1+$2) notitle pt 6

pause -1 'hit RETURN'



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gnuplot-bugs mailing list
gnuplot-bugs@...
https://lists.sourceforge.net/lists/listinfo/gnuplot-bugs

out.dat (3K) Download Attachment

Re: bug

by Thomas Sefzick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

that's the normal behavior of the c-function 'printf':

if you compile this little program:
#include <stdio.h>
main () {
        printf("%g\n",1.000005);
        printf("%f\n",1.000005);
}

and let it run, you'll get:

1.00001
1.000005

so adding
set format y "%f"
to your gnuplot-commands will solve your problem.

for more information see the manual or
help format
at the gnuplot prompt.
LightInTheBox - Buy quality products at wholesale price