Pdf plot

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

Hi,

I'd recommend to load the binary data and store it as a numpy

ndarray,

If your data is one-dimensional you can simply use

matplotlib.pyplot.hist,
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

···

http://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html

http://matplotlib.org/api/pyplot_api.html

  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.
_______________________________________________
Matplotlib-users mailing list

-- Benjamin Trendelkamp-Schroer
Freie Universität Berlin
FB Mathematik + Informatik
Institut für Mathematik
Arnimallee 6 D-14195 Berlin-Dahlem
+49-(0)30-838-75364

http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrkMatplotlib-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/matplotlib-userstrendelkamp@…4370…