|
From: Hans-Bernhard B. <HBB...@t-...> - 2009-11-08 14:36:18
|
Camilla Mont wrote:
> plot [0:200] [1.0*10**6:1.5*10**12] f(x), g(x)
>
> However, whenever I try to plot the function f(x), I cannot see it in the
> graphing window.
The problem comes from your apparent aversion to usual notation for big
numbers, i.e. from spelling out 1*10**12 when you should have just
written 1e12. The problem is that 10**12, as writtten, is an operation
on integers, so it'll be evaluated in integers. But 10**12 is quite
certainly larger than all integers on your machine, so this doesn't do
anywhere near what you think it should:
gnuplot> print 10**12
-727379968
gnuplot> print 1.0*10**12
-727379968.0
gnuplot> print 1*10.0**12
1000000000000.0
> set format y "10^{%L} , but then the labels become just 10^8, 10^9 and so
> forth. Is there a possibility that I could change this?
See "help format specifiers" about %l.
|