|
From: Rhys U. <rhy...@gm...> - 2014-01-08 16:37:09
|
> When plotting with 'smooth kdensity' I must provide 1/number-of-points > as the second plotting column to get a normalized histogram. Does > that scaling factor need to change to get a properly normalized > histogram when using a logarithmic x axis? While not The Right Thing (TM), here's what I did in case someone else finds it useful: # First, use 'set table' to get the proper kdens curve fit set samples 1000 set table 'random.kdens' plot "random.tmp" using 1:(1.0/nsamp) title 'Logscale x' smooth kdensity unset table # Second, plot the curve fit on a logscale set output "logscale.ps" set logscale x plot "random.kdens" title 'Logscale x' smooth kdensity with lines Please give a shout if there's something cleaner/prettier/simpler, Rhys |