Hi,
I'd recommend to load the binary data and store it as a numpy ndarray,
http://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html
If your data is one-dimensional you can simply use matplotlib.pyplot.hist,
http://matplotlib.org/api/pyplot_api.html
to plot the histogram. The 'normed' keyword argument allows matplotlib
to normalize the histogram so that the plot will show the pdf.
In order to unpack the data-files you need to know the binary format.
Can you please provide more information about that.
Best,
Benjamin
On 04.11.2013 07:03, Sourav Chatterjee wrote:
> I have binary files containing some discrete data. I need to calculate
> the probability density function (pdf) and plot the same. Do I need to
> unpack the data files? How? For plotting the pdf what module is easier?
>
> --
> Sourav Chatterjee
> Trainee Scientist
> Indian Institute of Tropical Meteorology, Pune
>
>
> ------------------------------------------------------------------------------
> Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this white
> paper to learn more about secure code signing practices that can help keep
> Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
>
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
Benjamin Trendelkamp-Schroer
Freie Universität Berlin
FB Mathematik + Informatik
Institut für Mathematik
Arnimallee 6
D-14195 Berlin-Dahlem
tre...@ze...
+49-(0)30-838-75364
|