Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

reading scientific notation in 3.7

227 views
Skip to first unread message

she...@owl.nmt.edu

unread,
Feb 12, 1999, 3:00:00 AM2/12/99
to
plots of data files are coming out slightly funny in gnuplot3.7 (patch 0),
when reading in numbers of the form 1.11E2 my old version 3.5 handles them
well. Converting the data to standard decimal fixed up the screwiness
though.

--==j0seph sheedy
http://climate.gi.alaska.edu/Sheedy

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own

crawford richard

unread,
Feb 12, 1999, 3:00:00 AM2/12/99
to
On Fri, 12 Feb 1999 Joseph Sheedy <she...@owl.nmt.edu> wrote:

> plots of data files are coming out slightly funny in gnuplot3.7 (patch 0),
> when reading in numbers of the form 1.11E2 my old version 3.5 handles them
> well. Converting the data to standard decimal fixed up the screwiness
> though.

The suspense builds ... could you please expand a bit on "slightly funny"?
What do you expect (i.e., get with decimal data) and what do you actually
get (i.e., with exponential data)?

Dick Crawford, aka rccra...@lanl.gov

joseph willis lahdenpera sheedy

unread,
Feb 12, 1999, 3:00:00 AM2/12/99
to u60...@gamma.lanl.gov

Sorry for the feeble vagueness in my last post. The real problem seems
to
arise when reading in numbers such as 1.11E-2. gnuplot 3.7 is ignoring
the exponential, but only when there is a sign in front of the exponent,
and when using 'E' notation (e.g. 1.11E2 plots as 111, but 1.11E+2 is read
as 1.11, and likewise for 1.11E-2). It seems to work fine when using
'd' or 'e' for the exponent signifier. for example:

file.dat

1 1.1E-1
2 2.2E-1
3 3.3E-1
4 4.4E-1

gnuplot3.5 reads this correctly, but 3.7p0 reads the second column as
1.1 , 2.2 , 3.3 , 4.4.

the result of "set term table ; plot 'file.dat' " is:
#Curve 0, 4 points
#x y type
1 1.1 i
2 2.2 i
3 3.3 i
4 4.4 i

is the 'E' notation being phased out? Seems strange since it reads
correctly without the sign in the exponent.

joseph sheedy
http://climate.gi.alaska.edu/Sheedy

0 new messages