From robert.riemann at physik.hu-berlin.de Wed Mar 10 19:57:24 2010 From: robert.riemann at physik.hu-berlin.de (Robert Riemann) Date: Thu, 11 Mar 2010 01:57:24 +0100 Subject: [Tioga-users] creating histograms Message-ID: <201003110157.24538.robert.riemann@physik.hu-berlin.de> Hi all, it is possible to create histograms from yet unbinned data? I tried it with gnuplot, but it fails in the case of the existance of empty bins. set terminal x11 persist bin_width = 5 bin_number(x) = floor(x/bin_width) rounded(x) = bin_width * ( bin_number(x) + 0.5 ) UNITY = 1 plot [0:] [0:]'results.csv' u (rounded($2)):(UNITY) t 'data' smooth freq w impulses lw 2 How would I do something equal (but correctly working) with tioga or ctioga? I never worked with ruby plotting tools. Maybe a little bit off-topic: I read that ctioga was created to create something looking better than gnuplot. Is gnuplot still behind ctioga even in its recent (svn) version? Cheers, Robert From robert.riemann at physik.hu-berlin.de Wed Mar 10 19:49:23 2010 From: robert.riemann at physik.hu-berlin.de (Robert Riemann) Date: Thu, 11 Mar 2010 01:49:23 +0100 Subject: [Tioga-users] histograms Message-ID: <201003110149.24368.robert.riemann@physik.hu-berlin.de> Hi all, it is possible to create histograms from a cvs file with tioga or ctioga? The data are actually not binned. I tried it with the gnuplot, but failed: set terminal x11 persist bin_width = 5 bin_number(x) = floor(x/bin_width) rounded(x) = bin_width * ( bin_number(x) + 0.5 ) UNITY = 1 plot [0:] [0:]'results.csv' u (rounded($2)):(UNITY) t 'data' smooth freq w histeps lw 2 In my case there are also empty bins, which doesnt work with plotting style histeps, but with impulses, but I am looking for a histogram. Greets Robert From saloution at googlemail.com Thu Mar 11 05:36:01 2010 From: saloution at googlemail.com (Robert Riemann) Date: Thu, 11 Mar 2010 11:36:01 +0100 Subject: [Tioga-users] creating histograms Message-ID: Hi all, it is possible to create histograms from yet unbinned data? I tried it with gnuplot, but it fails in the case of the existance of empty bins. set terminal x11 persist bin_width = 5 bin_number(x) = floor(x/bin_width) rounded(x) = bin_width * ( bin_number(x) + 0.5 ) UNITY = 1 plot [0:] [0:]'results.csv' u (rounded($2)):(UNITY) t 'data' smooth freq w impulses lw 2 How would I do something equal (but correctly working) with tioga or ctioga? I never worked with ruby plotting tools. Maybe a little bit off-topic: I read that ctioga was created to create something looking better than gnuplot. Is gnuplot still behind ctioga even in its recent (svn) version? Cheers, Robert From fourmond at gmail.com Thu Mar 11 06:31:25 2010 From: fourmond at gmail.com (Vincent Fourmond) Date: Thu, 11 Mar 2010 12:31:25 +0100 Subject: [Tioga-users] creating histograms In-Reply-To: References: Message-ID: <2e474d6f1003110331w5914860i86abc6bfbf8b1a24@mail.gmail.com> On Thu, Mar 11, 2010 at 11:36 AM, Robert Riemann wrote: > Hi all, Hello, Please don't post several times. We all got your message, but we might be busy and not be able to answer immediately. If you doubt your post ever made it to the list, please have a look at its archives http://rubyforge.org/pipermail/tioga-users/ > it is possible to create histograms from yet unbinned data? ctioga --binner --histogram data.data (where data.dat is a one-column data file). Extracts from ctioga --help to help you tune the look: --binner Backend 'Automatic binner' --binner-number NUMBER Number of bins --binner-xrange RANGE X range (a:b) --[no-]binner-norm Whether to divide by the total --binner-bin NUMBER The bin size > Maybe a little bit off-topic: I read that ctioga was created to create > something looking better than gnuplot. Is gnuplot still behind ctioga even in > its recent (svn) version? Well, of course I am seriously biased, but tioga looks much better than gnuplot in my eyes. Cheers, Vincent From robert.riemann at physik.hu-berlin.de Thu Mar 11 06:54:53 2010 From: robert.riemann at physik.hu-berlin.de (Robert Riemann) Date: Thu, 11 Mar 2010 12:54:53 +0100 Subject: [Tioga-users] creating histograms In-Reply-To: <2e474d6f1003110331w5914860i86abc6bfbf8b1a24@mail.gmail.com> References: <2e474d6f1003110331w5914860i86abc6bfbf8b1a24@mail.gmail.com> Message-ID: <201003111254.53639.robert.riemann@physik.hu-berlin.de> Am Donnerstag, 11. M?rz 2010 12:31:25 schrieb Vincent Fourmond: > On Thu, Mar 11, 2010 at 11:36 AM, Robert Riemann > > wrote: > > Hi all, > > Hello, > > Please don't post several times. We all got your message, but we > might be busy and not be able to answer immediately. If you doubt your > post ever made it to the list, please have a look at its archives > > http://rubyforge.org/pipermail/tioga-users/ I had some problems with initial registration on mailinglist and different smtp providers. I am sorry for that. > > > it is possible to create histograms from yet unbinned data? > > ctioga --binner --histogram data.data Thanks. > > (where data.dat is a one-column data file). > > Extracts from ctioga --help to help you tune the look: > > --binner Backend 'Automatic binner' > --binner-number NUMBER Number of bins > --binner-xrange RANGE X range (a:b) > --[no-]binner-norm Whether to divide by the total > --binner-bin NUMBER The bin size > > > Maybe a little bit off-topic: I read that ctioga was created to create > > something looking better than gnuplot. Is gnuplot still behind ctioga > > even in its recent (svn) version? > > Well, of course I am seriously biased, but tioga looks much better > than gnuplot in my eyes. > > Cheers, > > Vincent