On Thu, 3 May 2001, Robert Hart wrote:
> I figured Gnuplot must be the thing to use. However, I haven't been
> able to figure out how to use logarithmic scales for the axis.
>
> Do you know how to do this? Or do I have to log my data, and use
> normal scales?
There are two ways to do this for a datafile of two columns with
(x,y) values:
1)
set log y
plot 'datafile'
2)
plot 'datafile' u 1:(log10($2))
These two differ in the labeling of the axes - the former gives the usual
nonlinear scale and latter gives a linear scale in log values.
You can change the base with the "set base" command. Look at the help
using "? set base". BTW use at least version 3.7.1 - the 3.8 versions have
niftier graphics modes but is only available via CVS.
Peter
--------------------------------------------------------------------
http://www.lug.org.uk http://www.linuxportal.co.uk
http://www.linuxjob.co.uk http://www.linuxshop.co.uk
--------------------------------------------------------------------
This archive was generated by hypermail 2.1.3 : Thu 22 Nov 2001 - 13:11:40 GMT