help-gsl
[Top][All Lists]
Advanced

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

Re: [Help-gsl] histogram2d


From: Daniel J Farrell
Subject: Re: [Help-gsl] histogram2d
Date: Tue, 18 Mar 2008 22:03:38 +0000

Hello Jerome,

I don't like the default colour-space with the pm3d. If you're like me try this,

set palette model RGB
set palette rgbformulae 30,-13,-23

This is MATLAB's default, 'jet' colour-space.

(example here, 
http://www.boyfarrell.com/learning-curve/gnuplot-blue-green-red-pm3d-colourmap)

Cheers,

Dan.

On 18 Mar 2008, at 15:08, Jerome BENOIT wrote:

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


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





reply via email to

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