<div dir="ltr">Hi Aron<div><br></div><div>I tried your method and created the trace. When I go to the python shell and run that python macro, it says that the custom filter I had created does not exist. My custom filter consists of 2 calculator filters, each calculating different things. To create that custom filter, I selected both the calculators on the pipeline browser, right click-> create custom filter->finish.</div><div><br></div><div>To create my python macro, I first load up my .vtu files in the pipeline browser, hit apply, then I start trace. I add my custom filter, follow Kenneth's procedure to obtain the plot over time, then I hit Stop trace. Then in the script generated, file->save as macro.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 12, 2018 at 9:31 AM, Aron Helser <span dir="ltr"><<a href="mailto:aron.helser@kitware.com" target="_blank">aron.helser@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Jairaj,<div>This is exactly what the 'trace' and python macro functions are for. Take a look in the Tools menu, and choose Start Trace. If you check the 'show incremental trace' button you can see it's recording a python script as you take actions in the GUI. When you've completed your steps, you can choose 'save as python macro' and you'll get a button that can repeat the steps.</div><div><br></div><div>To go more in-depth, look for information on python scripting in Paraview!</div><div>Regards,</div><div>Aron</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Jan 11, 2018 at 7:47 PM, Jairaj Mathur <span dir="ltr"><<a href="mailto:hero.jairaj@gmail.com" target="_blank">hero.jairaj@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div dir="auto">Hi Ken<div dir="auto"><br></div><div dir="auto">This is EXACTLY what I wanted! Thank you so much. Is it possible to create a custom filter to do this, so that I dont have to follow these steps?<span class="m_-5671136260391818988HOEnZb"><font color="#888888"><br><br></font></span><div data-smartmail="gmail_signature" dir="auto"><span class="m_-5671136260391818988HOEnZb"><font color="#888888">Jairaj Mathur</font></span><span><br>Mechanical Engineering<br>Washington University in St Louis</span></div></div></div><div><div class="m_-5671136260391818988h5"><div class="gmail_extra"><br><div class="gmail_quote">On Jan 8, 2018 2:23 PM, "Moreland, Kenneth" <<a href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-5671136260391818988m_-5911665681468939913m_-6143929530292455230m_82182299047154428WordSection1">
<p class="MsoNormal">Jairaj,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I’m not sure what exactly you mean by â€œthe threshold,” but there are many ways to plot the average of a threshold-selection of cells over time.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The most straightforward way is to open up the Find Data dialog box, select the cells you want to plot, and then create a Plot Selection Over Time filter. Specifically, here are steps that will do such a plot:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="m_-5671136260391818988m_-5911665681468939913m_-6143929530292455230m_82182299047154428MsoListParagraph" style="margin-left:0in">Open your data in ParaView. Apply.<u></u><u></u></li><li class="m_-5671136260391818988m_-5911665681468939913m_-6143929530292455230m_82182299047154428MsoListParagraph" style="margin-left:0in">Open the Find Data dialog box (Edit â†’ Find Data or click the toolbar button on the top toolbar).<u></u><u></u></li><li class="m_-5671136260391818988m_-5911665681468939913m_-6143929530292455230m_82182299047154428MsoListParagraph" style="margin-left:0in">In the top row, set the left combo box to either â€œCell(s)” or â€œPoint(s)” depending on whether your data is cell or point data. In the longer combo box to the right, make sure that
 your data is selected.<u></u><u></u></li><li class="m_-5671136260391818988m_-5911665681468939913m_-6143929530292455230m_82182299047154428MsoListParagraph" style="margin-left:0in">In the second row, set the left combo box to the field you want to threshold on. Change the next combo box to say â€œis between”. This will create to text edit boxes where you enter
 the minimum and maximum values of your threshold range.<u></u><u></u></li><li class="m_-5671136260391818988m_-5911665681468939913m_-6143929530292455230m_82182299047154428MsoListParagraph" style="margin-left:0in">Click the â€œRun Selection Query” button. This will select all cells or points matching your threshold.<u></u><u></u></li><li class="m_-5671136260391818988m_-5911665681468939913m_-6143929530292455230m_82182299047154428MsoListParagraph" style="margin-left:0in">Click the â€œPlot Selection Over Time” at the bottom of the Find Data dialog box. This will create a filter in the pipeline browser.<u></u><u></u></li><li class="m_-5671136260391818988m_-5911665681468939913m_-6143929530292455230m_82182299047154428MsoListParagraph" style="margin-left:0in">Close the Find Data dialog box and click the Apply button.<u></u><u></u></li></ol>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">-Ken<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><b>From:</b> ParaView [mailto:<a href="mailto:paraview-bounces@paraview.org" target="_blank">paraview-bounces@parav<wbr>iew.org</a>]
<b>On Behalf Of </b>Jairaj Mathur<br>
<b>Sent:</b> Friday, January 5, 2018 4:53 PM<br>
<b>To:</b> paraview <<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>><br>
<b>Subject:</b> [EXTERNAL] [Paraview] Plot selection over time for threshold<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Dear all<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">How can I plot the average over time of only the threshold cells? It should only average the cells that are within the threshold.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thanks a lot!<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Jairaj Mathur,<br>
Mechanical Engineering<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Washington University in St Louis<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

</blockquote></div></div>
</div></div></div>
<br></div></div>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaV<wbr>iew</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://paraview.org/mailman/listinfo/paraview" rel="noreferrer" target="_blank">https://paraview.org/mailman/l<wbr>istinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">Jairaj Mathur,<br>Mechanical Engineering</div><div dir="ltr">Washington University in St Louis</div><div dir="ltr"><br></div></div></div></div>
</div>