# Plotting spin textures

**URL:** https://discourse.paraview.org/t/plotting-spin-textures/12990
**Category:** ParaView Support
**Created:** [October 5, 2023, 12:10pm UTC](https://discourse.paraview.org/t/plotting-spin-textures/12990 "2023-10-05T12:10:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![vshah181](https://discourse.paraview.org/user_avatar/discourse.paraview.org/vshah181/32/11856_2.png) [@vshah181](https://discourse.paraview.org/u/vshah181)
#### Post date: [October 5, 2023, 12:10pm UTC](https://discourse.paraview.org/t/plotting-spin-textures/12990/1 "2023-10-05T12:10:15Z")

</div>

Hello, I am new to ParaView and I would like to plot spin textures in condensed matter systems. I have two csv files (containing energies and spins) which I am trying to plot. So far I have something like this:

 ![paraview_screenshow](https://discourse.paraview.org/uploads/default/original/2X/e/e15adbca39dbc61513110174d4bf5669a7fc6451.jpeg)  
but as you can see, all the spins are being plotted. I want something like this:  
 ![image](https://discourse.paraview.org/uploads/default/original/2X/f/f4a12609907ce878088223d3b79d71ffbd4e54e3.png)  
Please can someone help me?  
Thanks

---

<div class="post-metadata">

### Author: ![Christos\_Tsolakis](https://discourse.paraview.org/user_avatar/discourse.paraview.org/christos_tsolakis/32/4450_2.png) [@Christos\_Tsolakis](https://discourse.paraview.org/u/Christos_Tsolakis)
#### Post date: [October 6, 2023, 4:55pm UTC](https://discourse.paraview.org/t/plotting-spin-textures/12990/2 "2023-10-06T16:55:40Z")

</div>

Hi @vshah181 if I understand correctly you want to plot the spin glyphs only along the restricted domains instead of the whole dataset right ?

If my interpretation is correct you can do what you are looking for using the `ResampleWithDataset` filter. Pick as source the vector field (`FastUniformGrid` in my case)  
and as destination mesh the restricted domains, `Ellipse` in my case.  
Finally, apply Glyph filter in the new dataset.

Input :

 ![screenshot_discourse](https://discourse.paraview.org/uploads/default/original/2X/7/796bfc20f529873f26a427e75580ab062cacc1e9.jpeg)

Output:

 ![screenshot_discourse_2](https://discourse.paraview.org/uploads/default/original/2X/0/0c817ea81ef9dadfa947b75f547062a750fc4a28.png)

Associated ParaView state file  
[resample\_with\_dataset.pvsm](https://discourse.paraview.org/uploads/short-url/3Ja7ckUdkqh9xtkm8vKOutweBU5.pvsm) (815.0 KB)

---

<div class="post-metadata">

### Author: ![vshah181](https://discourse.paraview.org/user_avatar/discourse.paraview.org/vshah181/32/11856_2.png) [@vshah181](https://discourse.paraview.org/u/vshah181)
#### Post date: [October 9, 2023, 7:49am UTC](https://discourse.paraview.org/t/plotting-spin-textures/12990/3 "2023-10-09T07:49:31Z")

</div>

That’s exactly what I was looking for. Thank you very much!
