# plot over line bug in 5.10rc1

**URL:** https://discourse.paraview.org/t/plot-over-line-bug-in-5-10rc1/8382
**Category:** Development
**Created:** [November 11, 2021, 8:08pm UTC](https://discourse.paraview.org/t/plot-over-line-bug-in-5-10rc1/8382 "2021-11-11T20:08:55Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![gbug](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gbug/32/2220_2.png) [@gbug](https://discourse.paraview.org/u/gbug)
#### Post date: [November 11, 2021, 8:08pm UTC](https://discourse.paraview.org/t/plot-over-line-bug-in-5-10rc1/8382/1 "2021-11-11T20:08:55Z")

</div>

Hi! I’ve noticed a different behavior of Plot Over Line filter in 5.9 and 5.10rc1 when plotting data near the boundary with different resolutions. Hope two figures below show the point. The original data is 2D array (vtr, data is attached to the nodes) and plots show the distribution near the bottom boundary (the boundary is x=0 and lines are x=1e-6). Array is 201x51 nodes (201 nodes along the bottom boundary). In the new version, 5.10rc1, for resolution 1000 a lot of 0 data points on the line are generated, for 200 all generated points are 0 except the one in the beginning and for 201 the curve looks as expected. In the stable version, 5.9.1, all three resolutions give almost the same results.

Env: debian testing amd64 with KDE.

[dump\_full.i00210.probe0.vtr](https://discourse.paraview.org/uploads/short-url/3ScxgjYmooTTOnWWdkk882gslW9.vtr) (448.0 KB)

 ![test510rc1](https://discourse.paraview.org/uploads/default/original/2X/6/6d12e10ffb79ace502e35cbd01cc9f43f6c8e0a0.png)  
[test510rc1.pvsm](https://discourse.paraview.org/uploads/short-url/exXKrCotVjVrkJ783HLdu1rj9yT.pvsm) (711.7 KB)  
 ![test591](https://discourse.paraview.org/uploads/default/original/2X/5/54cef100daf971b1e10bb134064ca4fb00adfa99.png)  
[test591.pvsm](https://discourse.paraview.org/uploads/short-url/vlrTB9actIzrYlp5PgxMYQMUqcB.pvsm) (583.2 KB)

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [November 11, 2021, 9:00pm UTC](https://discourse.paraview.org/t/plot-over-line-bug-in-5-10rc1/8382/2 "2021-11-11T21:00:20Z")

</div>

Hi Gena,  
I tried your excellent examples, and replicate what you show. 5.9.1 and 5.10.0-RC1 are in deed different. I then tried recreating the images from scratch (wondering if the issue was in the state file), and 5.9.1 and 5.10.0-RC1 look identical, and very similar to your test591. Could you try making these plots from scratch, and if you still see issues, give us detailed directions how to replicate the issue without a state file?  
Thanks, Alan

---

<div class="post-metadata">

### Author: ![gbug](https://discourse.paraview.org/user_avatar/discourse.paraview.org/gbug/32/2220_2.png) [@gbug](https://discourse.paraview.org/u/gbug)
#### Post date: [November 12, 2021, 7:34am UTC](https://discourse.paraview.org/t/plot-over-line-bug-in-5-10rc1/8382/3 "2021-11-12T07:34:14Z")

</div>

Hi, Alan,

Yep, I still see the issue. Steps to reproduce (paraview 5.10-rc1):

1. open the vtr file
2. choose Plot Over Line filter and select Z Axis on its Properties pane, leave the rest options default
3. hit apply, LineCharView appears and see the issue ![Screenshot_20211112_103047](https://discourse.paraview.org/uploads/default/original/2X/d/d82fb37eaf22a83cd14f25ab554496951985ad25.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: [November 12, 2021, 9:33am UTC](https://discourse.paraview.org/t/plot-over-line-bug-in-5-10rc1/8382/4 "2021-11-12T09:33:03Z")

</div>

PlotOverLine was reworked, @timothee.chabat may know more.

---

<div class="post-metadata">

### Author: ![timothee.chabat](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timothee.chabat/32/5729_2.png) [@timothee.chabat](https://discourse.paraview.org/u/timothee.chabat)
#### Post date: [November 12, 2021, 11:17am UTC](https://discourse.paraview.org/t/plot-over-line-bug-in-5-10rc1/8382/5 "2021-11-12T11:17:47Z")

</div>

After some digging it is because tolerance is not handled correctly in the new implementation of this filter. I can reproduce the error using the `Legacy Resample With DataSet` (which is the filter used by plot over line under the hood), a line source and a custom tolerance level. I will open an issue on gitlab and try to fix this when I have time.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [November 12, 2021, 5:11pm UTC](https://discourse.paraview.org/t/plot-over-line-bug-in-5-10rc1/8382/6 "2021-11-12T17:11:04Z")

</div>

@utkarsh.ayachit @cory.quammen Issue for 5.10?

---

<div class="post-metadata">

### Author: ![Yohann\_Bearzi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/yohann_bearzi/32/1894_2.png) [@Yohann\_Bearzi](https://discourse.paraview.org/u/Yohann_Bearzi)
#### Post date: [November 12, 2021, 8:48pm UTC](https://discourse.paraview.org/t/plot-over-line-bug-in-5-10rc1/8382/7 "2021-11-12T20:48:47Z")

</div>

@timothee.chabat I have a fix.

@wascott I’m backporting to 5.10

Edit: Here’s the [MR](https://gitlab.kitware.com/vtk/vtk/-/merge_requests/8638)

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [November 12, 2021, 9:19pm UTC](https://discourse.paraview.org/t/plot-over-line-bug-in-5-10rc1/8382/8 "2021-11-12T21:19:36Z")

</div>

And the bug report is here: [https://gitlab.kitware.com/paraview/paraview/-/issues/21087#note\_1083186](https://gitlab.kitware.com/paraview/paraview/-/issues/21087#note_1083186) Thanks Yohann.

---

<div class="post-metadata">

### Author: ![timothee.chabat](https://discourse.paraview.org/user_avatar/discourse.paraview.org/timothee.chabat/32/5729_2.png) [@timothee.chabat](https://discourse.paraview.org/u/timothee.chabat)
#### Post date: [November 15, 2021, 7:42am UTC](https://discourse.paraview.org/t/plot-over-line-bug-in-5-10rc1/8382/9 "2021-11-15T07:42:47Z")

</div>

Cool thanks !
