LD,

I don't think there is any built in function in ParaView, but you can convert a 
histogram to a cumulative distribution by applying the Python Programmable 
Filter with the following script:


import numpy

inarray = inputs[0].RowData['bin_values']

cumdist = numpy.cumsum(inarray)

output.RowData.append(cumdist, 'cumulative_distribution')


I noticed that when you apply the filter, ParaView wants to show it in a 
spreadsheet view. However, it works if you make it visible in the bar chart 
view created for the histogram. You can also create a line chart view and 
display it there.

Hope that helps.

-Ken

From: Sandeep Jella <[email protected]<mailto:[email protected]>>
Date: Thursday, February 19, 2015 at 4:56 PM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: [EXTERNAL] [Paraview] Cumulative Distribution Function

Hello,

Is it possible to plot a cumulative distribution function  for the histogram 
data in Paraview? Am trying to generate an 'S' Curve and superimpose on top of 
the histogram data.

Thanks,

LD
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to