<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="qrichtext" content="1">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>
<div>LD,</div>
</div>
</div>
<div><br>
</div>
<div>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:</div>
<div><br>
</div>
<div>
<pre style="margin-top: 12px; margin-bottom: 0px;"><!--StartFragment--><span style="font-family: 'Courier New', courier; font-weight: 600; color: rgb(0, 128, 0);">import</span><span style="font-family: 'Courier New', courier;"> </span><span style="font-family: 'Courier New', courier; font-weight: 600; color: rgb(0, 0, 255);">numpy</span></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style="font-family: 'Courier New', courier;">inarray </span><span style="font-family: 'Courier New', courier; color: rgb(102, 102, 102);">=</span><span style="font-family: 'Courier New', courier;"> inputs[</span><span style="font-family: 'Courier New', courier; color: rgb(102, 102, 102);">0</span><span style="font-family: 'Courier New', courier;">]</span><span style="font-family: 'Courier New', courier; color: rgb(102, 102, 102);">.</span><span style="font-family: 'Courier New', courier;">RowData[</span><span style="font-family: 'Courier New', courier; color: rgb(186, 33, 33);">'bin_values'</span><span style="font-family: 'Courier New', courier;">]</span></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style="font-family: 'Courier New', courier;">cumdist </span><span style="font-family: 'Courier New', courier; color: rgb(102, 102, 102);">=</span><span style="font-family: 'Courier New', courier;"> numpy</span><span style="font-family: 'Courier New', courier; color: rgb(102, 102, 102);">.</span><span style="font-family: 'Courier New', courier;">cumsum(inarray)</span></pre>
<pre style="margin-top: 0px; margin-bottom: 0px;"><span style="font-family: 'Courier New', courier;">output</span><span style="font-family: 'Courier New', courier; color: rgb(102, 102, 102);">.</span><span style="font-family: 'Courier New', courier;">RowData</span><span style="font-family: 'Courier New', courier; color: rgb(102, 102, 102);">.</span><span style="font-family: 'Courier New', courier;">append(cumdist, </span><span style="font-family: 'Courier New', courier; color: rgb(186, 33, 33);">'cumulative_distribution'</span><span style="font-family: 'Courier New', courier;">)</span></pre>
<pre style="margin-top: 0px; margin-bottom: 12px; font-family: 'Courier New,courier';"><br></pre>
</div>
<div>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.</div>
<div><br>
</div>
<div>Hope that helps.</div>
<div><br>
</div>
<div>-Ken</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Sandeep Jella <<a href="mailto:sandeepjella@gmail.com">sandeepjella@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, February 19, 2015 at 4:56 PM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>" <<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>><br>
<span style="font-weight:bold">Subject: </span>[EXTERNAL] [Paraview] Cumulative Distribution Function<br>
</div>
<div><br>
</div>
<div xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        font-variant:normal !important;
        color:#000099;
        text-transform:none;
        position:relative;
        top:0pt;
        mso-text-raise:0pt;
        letter-spacing:0pt;
        mso-contextual-alternates:no;
        text-shadow:none;
        text-decoration:none none;
        vertical-align:baseline;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:12.0pt;color:#000099">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:#000099"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:#000099">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:#000099"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:#000099">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:#000099"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;color:#000099">LD<o:p></o:p></span></p>
</div>
</div>
</div>
</span>
</body>
</html>