From: <bma...@we...> - 2006-11-13 16:41:48
|
> I am pretty (3 sigma) sure i found a bug w/ both the 4.2RC1 and 4.0 gnupl= ot. It's not a bug, it's a feature: =20 Gnuplot interprets (1/2) as an integer expression. Therefore (1/2) equals 0= . See ` help expressions` for further information.=20 Bastian >=20 > It seems to ignore the variation in y when i do this plot (sin too).=20 > However, if i just plot cos(x/2) it works right. Is there something that= =20 > i am doing wrong here(is gnuplot making an assumption of something not=20 > obvious)?? This should look like a surface of the 1D plot. >=20 >=20 > gnuplot> set yran [-pi:pi] > gnuplot> set xran [0:1] > gnuplot> spl cos(y*(1/2)) > Warning: empty z range [1:1], adjusting to [0.99:1.01] >=20 > Thanks > matt --=20 Bastian M=E4rkisch Physikalisches Institut, Universit=E4t Heidelberg |