help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] histogram2d


From: Jerome BENOIT
Subject: Re: [Help-gsl] histogram2d
Date: Tue, 18 Mar 2008 23:08:47 +0800
User-agent: Mozilla-Thunderbird 2.0.0.9 (X11/20080109)

Hello,

thanks for the reply.

Starting from the hint, I get what I want by enter:


set pm3d map
splot 'histogram2d.txt' using (($1+$2)/2.0):(($3+$4)/2.0):5


I think that such a hint may be written somewhere in the GSL manual.

Thanks,
Jerome

Daniel J Farrell wrote:
Hello,

I use gnuplot to take a surface plot of gsl histogram2d's. I take the average of the x and y bin position and reduced the histogram data to (x,y,z) points.

Example,
(http://www.boyfarrell.com/forums/gsl-histogram-2d-plot.pdf) using the data file, (http://www.boyfarrell.com/forums/histogram2d.txt).

The gnuplot command was,

splot 'histogram2d.txt' using (($1+$2)/2.0):(($3+$4)/2.0):5 with lines


If you want to get the 'density' you could try putting isobars on... type

set contour
replot

gnuplot can now do histogram but I haven't used this feature. It might just plot normal 1D histogram...

Cheers,

Dan.

On 7 Mar 2008, at 13:06, Jerome BENOIT wrote:

Hello List,

I am looking for a way to plot an histogram2d as given by GSL:
something as a density plot.

Thanks in advance,
Jerome

--
Jerome BENOIT
jgmbenoit_at_mailsnare_dot_net


_______________________________________________
Help-gsl mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-gsl



--
Jerome BENOIT
jgmbenoit_at_mailsnare_dot_net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]