# Plot Over Line have NaN values

**URL:** https://discourse.paraview.org/t/plot-over-line-have-nan-values/9882
**Category:** ParaView Support
**Created:** [June 22, 2022, 2:31pm UTC](https://discourse.paraview.org/t/plot-over-line-have-nan-values/9882 "2022-06-22T14:31:11Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Yunxi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/y/e36b37/32.png) [@Yunxi](https://discourse.paraview.org/u/Yunxi)
#### Post date: [June 22, 2022, 2:31pm UTC](https://discourse.paraview.org/t/plot-over-line-have-nan-values/9882/1 "2022-06-22T14:31:11Z")

</div>

Hello! I’m trying to plot some data from a CFD simulation, but some NaN values appears in the line chart. The z coordinate should be fixed, so I used to slice filter. The x, y coordinates should be random numbers. I’ve tried to increase the resolution, but it doesn’t help.

Could you give me some guidance please? Thank you!

Best,  
Yunxi

 ![截圖 2022-06-22 下午3.19.07](https://discourse.paraview.org/uploads/default/original/2X/1/148c038219d9438959d9cad250e4d75b2588ab12.jpeg)  
 ![截圖 2022-06-22 下午3.18.46](https://discourse.paraview.org/uploads/default/original/2X/9/906df3866b560e4af7ce418669b55d34ed5fee79.jpeg)

---

<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 22, 2022, 2:37pm UTC](https://discourse.paraview.org/t/plot-over-line-have-nan-values/9882/2 "2022-06-22T14:37:58Z")

</div>

Which version of ParaVIew are you using ?

FYI @timothee.chabat

---

<div class="post-metadata">

### Author: ![Yunxi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/y/e36b37/32.png) [@Yunxi](https://discourse.paraview.org/u/Yunxi)
#### Post date: [June 22, 2022, 2:39pm UTC](https://discourse.paraview.org/t/plot-over-line-have-nan-values/9882/3 "2022-06-22T14:39:01Z")

</div>

Thank you for your reply!. I’m using 5.10.0

---

<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 22, 2022, 2:39pm UTC](https://discourse.paraview.org/t/plot-over-line-have-nan-values/9882/4 "2022-06-22T14:39:46Z")

</div>

Ok, please share your data.

---

<div class="post-metadata">

### Author: ![Yunxi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/y/e36b37/32.png) [@Yunxi](https://discourse.paraview.org/u/Yunxi)
#### Post date: [June 22, 2022, 2:53pm UTC](https://discourse.paraview.org/t/plot-over-line-have-nan-values/9882/5 "2022-06-22T14:53:03Z")

</div>

I have in hand now is a large zip file (more than 200MB) containing a large visualisation folder (.vtp, .pvtp, .vtu files) and a few .pvd files. I’m still quite new in using ParaView, could you please let me know what files are needed? Or is there a way I can share this zip file with you? Thanks

---

<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 22, 2022, 2:58pm UTC](https://discourse.paraview.org/t/plot-over-line-have-nan-values/9882/6 "2022-06-22T14:58:25Z")

</div>

> [@Yunxi](#):
>
> Or is there a way I can share this zip file with you?

Wetransfer would work

---

<div class="post-metadata">

### Author: ![Yunxi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/y/e36b37/32.png) [@Yunxi](https://discourse.paraview.org/u/Yunxi)
#### Post date: [June 22, 2022, 3:05pm UTC](https://discourse.paraview.org/t/plot-over-line-have-nan-values/9882/7 "2022-06-22T15:05:18Z")

</div>

Thank you, the link in here:

> **[turbine\_270p00\_10p00\_P14\_OUTPUT/.DS\_Store and 95 more files](https://wetransfer.com/downloads/e6ff855d15d6bc8046734d6242101e1220220622150143/608092)**
>
> 96 files sent via WeTransfer, the simplest way to send your files around the world

---

<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 23, 2022, 7:44am UTC](https://discourse.paraview.org/t/plot-over-line-have-nan-values/9882/8 "2022-06-23T07:44:30Z")

</div>

Some of your cells have non-planar faces, hence producing NaNs:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/a/a5682df3d78be6cf5f797535ea63d983fb94d70b.jpeg)

BTW, “T Cells” are considered invalid by many filters.

---

<div class="post-metadata">

### Author: ![Yunxi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/y/e36b37/32.png) [@Yunxi](https://discourse.paraview.org/u/Yunxi)
#### Post date: [June 23, 2022, 12:05pm UTC](https://discourse.paraview.org/t/plot-over-line-have-nan-values/9882/9 "2022-06-23T12:05:40Z")

</div>

Thank you for your guidance. For the “T cell” you mean Tetrahedral cells right? Could you please let me know how can I get the mesh view in the screenshot so I investigate it further? Thanks.

---

<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 23, 2022, 12:08pm UTC](https://discourse.paraview.org/t/plot-over-line-have-nan-values/9882/10 "2022-06-23T12:08:59Z")

</div>

No I mean cells like this:

```auto
_______
    |__
    |__
____|__

```

---

<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 23, 2022, 12:09pm UTC](https://discourse.paraview.org/t/plot-over-line-have-nan-values/9882/11 "2022-06-23T12:09:19Z")

</div>

> [@Yunxi](#):
>
> Could you please let me know how can I get the mesh view in the screenshot so I investigate it further

I’m using Tetrahedralize filter.

---

<div class="post-metadata">

### Author: ![Kenichiro-Yoshimi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/k/ecc23a/32.png) [@Kenichiro-Yoshimi](https://discourse.paraview.org/u/Kenichiro-Yoshimi)
#### Post date: [June 23, 2022, 11:54pm UTC](https://discourse.paraview.org/t/plot-over-line-have-nan-values/9882/12 "2022-06-23T23:54:47Z")

</div>

There is a slightly redundant solution.  
For the Slice surface, the **Slice filter** is used to cut and create a line for the plot. Then, the **Plot On Sorted Lines** filter is applied to the line, and the plot is now continuous.

 ![slice_slice](https://discourse.paraview.org/uploads/default/original/2X/6/69eb846a62aa3aafe4c1fbec9344b65ce60cd7d4.png)

You may also apply the **Plot On Intersection Curves** filter to the Slice plane.

---

<div class="post-metadata">

### Author: ![Yunxi](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/y/e36b37/32.png) [@Yunxi](https://discourse.paraview.org/u/Yunxi)
#### Post date: [June 24, 2022, 4:47pm UTC](https://discourse.paraview.org/t/plot-over-line-have-nan-values/9882/13 "2022-06-24T16:47:34Z")

</div>

Hi Kyoshimi. Thank you very much for your advice! It works perfectly for my simulation result.
