# How to view the data restrict to one domain

**URL:** https://discourse.paraview.org/t/how-to-view-the-data-restrict-to-one-domain/334
**Category:** ParaView Support
**Created:** [July 18, 2018, 3:32am UTC](https://discourse.paraview.org/t/how-to-view-the-data-restrict-to-one-domain/334 "2018-07-18T03:32:21Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Wesley](https://discourse.paraview.org/user_avatar/discourse.paraview.org/wesley/32/1277_2.png) [@Wesley](https://discourse.paraview.org/u/Wesley)
#### Post date: [July 18, 2018, 3:32am UTC](https://discourse.paraview.org/t/how-to-view-the-data-restrict-to-one-domain/334/1 "2018-07-18T03:32:21Z")

</div>

Hi all,

I am using PlotOverLine in ParaView to visualize my data from variable u and v. In my 1-D simulation u and v have some value through whole domain, but actually for my problem u is only valid in domain 1 (0\<x\<1) and v is only valid in domain 2 (1\<x\<2).

Can we get rid of (or say, hidden) the data I don’t like here? e.g., u only shows its curve from 0 to 1 and v only shows its curve from 1 to 2.

 ![image](https://discourse.paraview.org/uploads/default/original/1X/3f4c4546dde1b7b2f07d9dfabf84c6c8ef740f44.png)

If I try the following:  
Generate two PlotOverLine;  
In the 1st I choose to show u from coordinate (0 0 0) to (1 0 0);  
In the 2nd I choose to show v from coordinate (1 0 0) to (2 0 0).

It will actually give me v plot from 0 to 1, not 1 to 2.

 ![image](https://discourse.paraview.org/uploads/default/original/1X/909b5e367ba2742341bf8f797342058c557977de.png)

---

<div class="post-metadata">

### Author: ![Wesley](https://discourse.paraview.org/user_avatar/discourse.paraview.org/wesley/32/1277_2.png) [@Wesley](https://discourse.paraview.org/u/Wesley)
#### Post date: [July 18, 2018, 5:48pm UTC](https://discourse.paraview.org/t/how-to-view-the-data-restrict-to-one-domain/334/2 "2018-07-18T17:48:41Z")

</div>

I have figured it out by setting the X Array Name from arc\_length to Points\_X

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [July 18, 2018, 10:04pm UTC](https://discourse.paraview.org/t/how-to-view-the-data-restrict-to-one-domain/334/3 "2018-07-18T22:04:47Z")

</div>

Wesley,

I’m glad you found a solution to your problem. I just wanted to note that it appears that any value outside of the valid domain appears to be set to 0. If possible, you might consider changing values outside of the valid domain to NaN. If your values were NaN, then the PlotOverLine would automatically remove them and not plot the erroneous values you are pointing out. It could also avoid other confusing issues and scaling problems that might arise.

---

<div class="post-metadata">

### Author: ![Wesley](https://discourse.paraview.org/user_avatar/discourse.paraview.org/wesley/32/1277_2.png) [@Wesley](https://discourse.paraview.org/u/Wesley)
#### Post date: [July 19, 2018, 1:02am UTC](https://discourse.paraview.org/t/how-to-view-the-data-restrict-to-one-domain/334/4 "2018-07-19T01:02:57Z")

</div>

Thanks Kenneth, I would consider that.

---

<div class="post-metadata">

### Author: ![Wesley](https://discourse.paraview.org/user_avatar/discourse.paraview.org/wesley/32/1277_2.png) [@Wesley](https://discourse.paraview.org/u/Wesley)
#### Post date: [April 3, 2019, 1:35pm UTC](https://discourse.paraview.org/t/how-to-view-the-data-restrict-to-one-domain/334/5 "2019-04-03T13:35:15Z")

</div>

It is wired. I was able to solve this long time ago. Today I meet this again, but “set the X Array Name from arc\_length to Points\_X” does not fix. Could someone help? I have attached the source file and the pictures.

 ![current%20profile%20using%20points_X%20in%20X%20array%20name](https://discourse.paraview.org/uploads/default/original/2X/4/4a07275842e4ca0a52af7d816a4ec5fd2d5900c3.png) ![desired%20profile](https://discourse.paraview.org/uploads/default/original/2X/7/70579c3a740dc1e76c008d3093a7e917d8282118.png) [peacock\_run\_exe\_tmp\_1D\_transient\_soret\_effect\_ArrheniusD\_out.e](https://discourse.paraview.org/uploads/default/original/2X/7/7cc8a7f9d40e179e69f4af0d8c67e08b8d8d6a51.e) (92.0 KB)

---

<div class="post-metadata">

### Author: ![Kenneth\_Moreland](https://discourse.paraview.org/user_avatar/discourse.paraview.org/kenneth_moreland/32/15033_2.png) [@Kenneth\_Moreland](https://discourse.paraview.org/u/Kenneth_Moreland)
#### Post date: [April 3, 2019, 2:20pm UTC](https://discourse.paraview.org/t/how-to-view-the-data-restrict-to-one-domain/334/6 "2019-04-03T14:20:44Z")

</div>

@utkarsh.ayachit, I’m going to shoot this over to you. I think the easiest thing to do in this case should be to replace the 0’s in the arrays with NaN’s, but I can’t find a straightforward way to do that.

---

<div class="post-metadata">

### Author: ![Wesley](https://discourse.paraview.org/user_avatar/discourse.paraview.org/wesley/32/1277_2.png) [@Wesley](https://discourse.paraview.org/u/Wesley)
#### Post date: [April 3, 2019, 2:41pm UTC](https://discourse.paraview.org/t/how-to-view-the-data-restrict-to-one-domain/334/7 "2019-04-03T14:41:23Z")

</div>

> [@Kenneth\_Moreland](#):
>
> NaN

This is the output result from the simulation, I haven’t found a way to put NaN rather than 0 in the variable.

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [April 3, 2019, 3:05pm UTC](https://discourse.paraview.org/t/how-to-view-the-data-restrict-to-one-domain/334/8 "2019-04-03T15:05:34Z")

</div>

Attached is a [state-file.pvsm](https://discourse.paraview.org/uploads/default/original/2X/0/09060b60d03bfc4f7b4d827dd3cd70a02c5bf73b.pvsm) (95.2 KB) for ParaView 5.6.

Here’s what I get for the last timestep:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/c/cee4bb0827c3462eee0961bbbf526d84d5de47e3.png)

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [April 3, 2019, 3:10pm UTC](https://discourse.paraview.org/t/how-to-view-the-data-restrict-to-one-domain/334/9 "2019-04-03T15:10:18Z")

</div>

Here’s an updated version using **x coordinate** for X axis instead of **T**

[state-file-2.pvsm](https://discourse.paraview.org/uploads/default/original/2X/e/e41e7f7ff24e116e444dcc275dabb65d14db8131.pvsm) (97.4 KB)

 ![image](https://discourse.paraview.org/uploads/default/original/2X/6/60f28b82160630a081d1f4e3591796116bba92dd.png)

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [April 3, 2019, 3:48pm UTC](https://discourse.paraview.org/t/how-to-view-the-data-restrict-to-one-domain/334/10 "2019-04-03T15:48:51Z")

</div>

Attached a new state file, even simpler!

[state-file-3.pvsm](https://discourse.paraview.org/uploads/default/original/2X/8/8cd2f09a0803626192612cea734fc97fe575f8e9.pvsm) (95.0 KB)

 ![image](https://discourse.paraview.org/uploads/default/original/2X/1/12cf9ec5231618acc7379dfb3986795b9944f418.png)

---

<div class="post-metadata">

### Author: ![Wesley](https://discourse.paraview.org/user_avatar/discourse.paraview.org/wesley/32/1277_2.png) [@Wesley](https://discourse.paraview.org/u/Wesley)
#### Post date: [April 3, 2019, 4:29pm UTC](https://discourse.paraview.org/t/how-to-view-the-data-restrict-to-one-domain/334/11 "2019-04-03T16:29:43Z")

</div>

Thanks. I was using PlotOverLine filter, that cause the problem.

Now I use PlotData filter, and check all blocks, and uncheck Use Index For XAxis. Then I fix this.

Thanks for your instructions!

 ![image](https://discourse.paraview.org/uploads/default/original/2X/3/3b3ea450d2ced8375508c91153e8df7ceebadae3.png)
