Hi Paul,
I have not tested your with your data but try the following:
Instead of histogram_pdf try another script called frequency_histogarm2.jnl. For ploting, load the resulting ascii file and use plot/vs/line command. Here is an example:
load data
go frequency_histogram2 TA -10 40 0.2
can data/all; can var/all; can mem/all
file/var=v1,v2/col=2 bar_plot.dat ! you can rename the dat file if you are calling above script multiple time say for computing histogram over differnt region
plot/vs/line/nolab v1[d=1],v2[d=1]/v2[d=1,i=@sum]
See if this gives satisfactory result, though I am not sure if the area under the curve = 1.
Hope this helps,
Jagadish
On Thursday, February 20, 2014 7:18 PM, Paul Goddard <goddarpb@xxxxxxxxx> wrote:
Sorry to bother again. After looking through the script, I have some more questions. attached is a file containing minimal daily
temperatures for 20 years from a model output. I would like to create a PDF plot with the x-axis being Temperature and the Y-axis being the probability. When I run the go histogram_pdf command on my data, the output is a scatter plot of points, the x-axis is temperature, and the y-axis is hpdf.
A few questions. I was hoping to make a PDF where the display is a line graph, and the area under the curve equals one. Is this possible with this script? And if so, do I make modifications to delta i, or @sbx, .. etc?
Thank you for your help. I attached the data set and a pdf of the PDF using the go histogram_pdf command with default settings.
Paul