# Help with Threshold filter

**URL:** https://discourse.paraview.org/t/help-with-threshold-filter/17399
**Category:** ParaView Support
**Tags:** python
**Created:** [January 14, 2026, 5:31pm UTC](https://discourse.paraview.org/t/help-with-threshold-filter/17399 "2026-01-14T17:31:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Patrick.Needs.Help](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Patrick.Needs.Help](https://discourse.paraview.org/u/Patrick.Needs.Help)
#### Post date: [January 14, 2026, 5:31pm UTC](https://discourse.paraview.org/t/help-with-threshold-filter/17399/1 "2026-01-14T17:31:47Z")

</div>

Hello I am trying to script a headless version of a process that I am using through the gui for school and I am running into a bit of an issue with the threshold fitler. I am using a Programmable Filter (to subtract 2 sets of table to points data from each other) \> Applying a glyph (Sphere for visual) \> and Applying threshold to the glyph (to filter my results based on positive or negative change recorded)

When used in the gui I am able to do these 3 steps then set my minimum and maximum threshold values from -1:1 and click apply where the renderview updates and I see all of my spheres.

The issue I’m running into when scripting is that all of my commands are working but the minimum and maximum for the threshold are not sticking. I have a portion in the script that sets -1 to lower bound and 1 for upper bound but when the render loads the threshold values have been been automatically set from 0:0. This is causing only ~20% of my data to render at start whereas if I go through my manual method in the gui I can start with 100% of data and work backwards. I’ve tried adding in several spots to update pipeline as a way to force the apply button but have seen no change. I’ll upload the snip of script for threshold as well as a screen capture for the expected gui view vs actual. The parts commented out in the code snip are things I attempted but did not have luck with in changing.

```auto
print(“Applying Threshold filter…”)
#diff_glyph.UpdatePipeline()
threshold = Threshold(Input=diff_glyph)
#threshold.UpdatePipeline()
threshold.Scalars = \[‘POINTS’, ‘CSV Difference’\] # Replace with actual difference column name
threshold.LowerThreshold = -1
threshold.UpperThreshold = 1
threshold.AllScalars = 1 # Use all scalars mode
#threshold.ThresholdMethod = “Between”

threshold.UpdatePipeline()
Render()

```

 ![actual_threshold](https://discourse.paraview.org/uploads/default/original/3X/d/2/d2a5868219b6aac3ba40f0e96060ae57ce4707fc.png)

 ![expected_threshold](https://discourse.paraview.org/uploads/default/original/3X/3/6/36da9944b49012bbdf3c73477c689b86f0a712cb.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 16, 2026, 8:09am UTC](https://discourse.paraview.org/t/help-with-threshold-filter/17399/2 "2026-01-16T08:09:27Z")

</div>

Which version of ParaView are you using ? You may want to update.

---

<div class="post-metadata">

### Author: ![Patrick.Needs.Help](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Patrick.Needs.Help](https://discourse.paraview.org/u/Patrick.Needs.Help)
#### Post date: [January 16, 2026, 4:26pm UTC](https://discourse.paraview.org/t/help-with-threshold-filter/17399/3 "2026-01-16T16:26:29Z")

</div>

I’m using paraview 6.0.1, was this a known bug in an older version?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 16, 2026, 4:31pm UTC](https://discourse.paraview.org/t/help-with-threshold-filter/17399/4 "2026-01-16T16:31:05Z")

</div>

hum, thats strange, my threshold UI is different in ParaView 6.0.1:

 ![a](https://discourse.paraview.org/uploads/default/original/3X/4/d/4db03f994cbecf0f936415e905fc2035c3c7a0f1.png)

---

<div class="post-metadata">

### Author: ![Patrick.Needs.Help](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Patrick.Needs.Help](https://discourse.paraview.org/u/Patrick.Needs.Help)
#### Post date: [January 16, 2026, 5:24pm UTC](https://discourse.paraview.org/t/help-with-threshold-filter/17399/5 "2026-01-16T17:24:03Z")

</div>

Oh gosh I feel dumb, you were absolutely right. I was using paraview 6.0.1 in my spyder instance as I wanted to make sure my script would work but I was checking it in the gui for my paraview 5.5.2 instance. It looks like the threshold that was being made in the new version wasn’t backwards compatible with the older version. As soon as I manually loaded the state into 6.0 the threshold was working as expected. Definitely a user error on my part. Thank you!
