# Minimum and Maximu Value for OxygenSaturation

**URL:** https://discourse.kitware.com/t/minimum-and-maximu-value-for-oxygensaturation/1216
**Category:** Pulse Physiology Engine
**Created:** [February 19, 2024, 10:26am UTC](https://discourse.kitware.com/t/minimum-and-maximu-value-for-oxygensaturation/1216 "2024-02-19T10:26:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Ehtisham\_Yasin](https://discourse.kitware.com/user_avatar/discourse.kitware.com/ehtisham_yasin/32/842_2.png) [@Ehtisham\_Yasin](https://discourse.kitware.com/u/Ehtisham_Yasin)
#### Post date: [February 19, 2024, 10:26am UTC](https://discourse.kitware.com/t/minimum-and-maximu-value-for-oxygensaturation/1216/1 "2024-02-19T10:26:41Z")

</div>

I want to set the **PulseDataLineRenderer** values for **OxygenSaturation** , but I’m clueless on what should be the **YMin** and **YMax** value of the class for **OxygenSaturation**. I’ve tweaked around with different values but couldn’t get any positive response.

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [February 19, 2024, 11:41am UTC](https://discourse.kitware.com/t/minimum-and-maximu-value-for-oxygensaturation/1216/2 "2024-02-19T11:41:20Z")

</div>

[OxygenSaturation](https://gitlab.kitware.com/physiology/engine/-/blob/stable/src/schema/pulse/cdm/bind/Physiology.proto?ref_type=heads#L52) is provided from Pulse as a fraction between 0 and 1, so you can set you ymin to 0 and ymax to 1. If you want to display it as a percent, multiply the value from Pulse by 100 and set your ymax to 100.

---

<div class="post-metadata">

### Author: ![Ehtisham\_Yasin](https://discourse.kitware.com/user_avatar/discourse.kitware.com/ehtisham_yasin/32/842_2.png) [@Ehtisham\_Yasin](https://discourse.kitware.com/u/Ehtisham_Yasin)
#### Post date: [February 19, 2024, 11:50am UTC](https://discourse.kitware.com/t/minimum-and-maximu-value-for-oxygensaturation/1216/3 "2024-02-19T11:50:17Z")

</div>

Thanks for the quick response @abray!  
I’ve already tried these values, but the LineRenderer still keeps at straight line.  
The float value seems to be appearing correctly, but I’m not getting any values or changes in the LineRenderer.  
Here is a quick screenshot

 ![image](https://discourse.kitware.com/uploads/default/original/1X/5d92e8ca923cd66118e6f4b029996899657e1a78.png)

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [February 19, 2024, 12:04pm UTC](https://discourse.kitware.com/t/minimum-and-maximu-value-for-oxygensaturation/1216/4 "2024-02-19T12:04:40Z")

</div>

OxygenSaturation is not a waveform. It usually just holds at something like 98. You have to seriously restrict airflow for it to drop, then it will just stay at that value. There is no bounce to it.

Your plot looks like that maybe what’s happened. If it was normal, it would be a horizontal line at the top of its draw space. But now it’s just a horizontal line around the middle of the draw space… Which is reflecting the 50 value you’re displaying.

---

<div class="post-metadata">

### Author: ![Ehtisham\_Yasin](https://discourse.kitware.com/user_avatar/discourse.kitware.com/ehtisham_yasin/32/842_2.png) [@Ehtisham\_Yasin](https://discourse.kitware.com/u/Ehtisham_Yasin)
#### Post date: [February 19, 2024, 12:30pm UTC](https://discourse.kitware.com/t/minimum-and-maximu-value-for-oxygensaturation/1216/5 "2024-02-19T12:30:29Z")

</div>

Okay I got the point now. Thanks for the help! I highly appreciate that
