<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">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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="HOEnZb"><font color="#888888"><br><br></font></span><div data-smartmail="gmail_signature" dir="auto"><span class="HOEnZb"><font color="#888888">Jairaj Mathur</font></span><span class=""><br>Mechanical Engineering<br>Washington University in St Louis</span></div></div></div><div><div class="h5"><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_-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_-5911665681468939913m_-6143929530292455230m_82182299047154428MsoListParagraph" style="margin-left:0in">Open your data in ParaView. Apply.<u></u><u></u></li><li class="m_-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_-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_-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_-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_-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_-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>______________________________<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/<wbr>opensource/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/<wbr>ParaView</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/<wbr>listinfo/paraview</a><br>
<br></blockquote></div><br></div>