This work well:
bin(x,s) = s*int(x/s)
set yrange [1:10000]
plot file_name using (bin($3,10)):(1.) s f w boxes
but if I try to add:
set log y
I don't see nothing!
Maybe because log(1.) = 0 everywhere?
I've never understood what is :(1.)?
wiso wrote:
>
> I've never understood what is :(1.)?
> print 3/2
2
> print 3/2.
1.5
Without the ".", gnuplot computes "integer algebra".
Karl
ok, but my problem is: what is :(1.)? Is it a division?
> sfeam wrote:
>
>> wiso wrote:
>>
>>> how to do logaritmic histogram (log y)?
>>>
>>> This work well:
>>>
>>>
>>> bin(x,s) = s*int(x/s)
>>> set yrange [1:10000]
>>> plot file_name using (bin($3,10)):(1.) s f w boxes
using X:Y
In your case X = bin($3,10)
Y = 1.