# Colorby field not getting rendered/updated from script

**URL:** https://discourse.paraview.org/t/colorby-field-not-getting-rendered-updated-from-script/16801
**Category:** ParaView Support
**Created:** [June 12, 2025, 8:40am UTC](https://discourse.paraview.org/t/colorby-field-not-getting-rendered-updated-from-script/16801 "2025-06-12T08:40:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Shashi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/ecb155/32.png) [@Shashi](https://discourse.paraview.org/u/Shashi)
#### Post date: [June 12, 2025, 8:40am UTC](https://discourse.paraview.org/t/colorby-field-not-getting-rendered-updated-from-script/16801/1 "2025-06-12T08:40:05Z")

</div>

Hey all  
I am facing an issue with Colorby field not getting updated and rendered based on my choice. After running the script i get a full blue graph which is not desired. However if i change colorby to something arbitrary and change it back to “Type”, i get the desired coloring of red blue yellow. I feel there is an issue with updating pipeline or buffers not being flushed. Could you please suggest a method to fix this issue .Note that the two images have the exact same pipeline and properties.

 ![image](https://discourse.paraview.org/uploads/default/original/3X/0/1/01bb5f95a086fbb11639b3f8ce3e28b435b5734e.png)  
 ![image](https://discourse.paraview.org/uploads/default/original/3X/2/5/25175089f494db03f3c973e65315044ed16e7987.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: [June 12, 2025, 8:58am UTC](https://discourse.paraview.org/t/colorby-field-not-getting-rendered-updated-from-script/16801/2 "2025-06-12T08:58:17Z")

</div>

Try reseting the range using ResetScalarRange button ?

---

<div class="post-metadata">

### Author: ![Shashi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/ecb155/32.png) [@Shashi](https://discourse.paraview.org/u/Shashi)
#### Post date: [June 13, 2025, 7:47am UTC](https://discourse.paraview.org/t/colorby-field-not-getting-rendered-updated-from-script/16801/3 "2025-06-13T07:47:00Z")

</div>

Thanks! It is working now.
