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

logaritmic histogram

3 views
Skip to first unread message

wiso

unread,
Dec 21, 2009, 12:24:13 PM12/21/09
to
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


but if I try to add:
set log y

I don't see nothing!

sfeam

unread,
Dec 21, 2009, 2:30:14 PM12/21/09
to
wiso wrote:

Maybe because log(1.) = 0 everywhere?

wiso

unread,
Dec 21, 2009, 4:54:16 PM12/21/09
to
sfeam wrote:

I've never understood what is :(1.)?

Karl Ratzsch

unread,
Dec 22, 2009, 5:26:07 PM12/22/09
to

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

wiso

unread,
Dec 22, 2009, 5:49:50 PM12/22/09
to
Karl Ratzsch wrote:

ok, but my problem is: what is :(1.)? Is it a division?

sfeam

unread,
Dec 22, 2009, 5:59:30 PM12/22/09
to
wiso wrote:

> 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.

0 new messages