# Displaying azimuthal information with a cyclic colormap

**URL:** https://discourse.paraview.org/t/displaying-azimuthal-information-with-a-cyclic-colormap/12830
**Category:** ParaView Support
**Created:** [September 7, 2023, 8:40pm UTC](https://discourse.paraview.org/t/displaying-azimuthal-information-with-a-cyclic-colormap/12830 "2023-09-07T20:40:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Art-MC](https://discourse.paraview.org/user_avatar/discourse.paraview.org/art-mc/32/12364_2.png) [@Art-MC](https://discourse.paraview.org/u/Art-MC)
#### Post date: [September 7, 2023, 8:40pm UTC](https://discourse.paraview.org/t/displaying-azimuthal-information-with-a-cyclic-colormap/12830/1 "2023-09-07T20:40:13Z")

</div>

Hello,

I am working with 3D vector data, and I want to show some stream plots with the color corresponding to the azimuth angle. I can use the calculator and atan2 to calculate the azimuth [-pi, pi], and with cyclic colormap this looks alright in most areas. The issue is that the stream plot interpolates between -pi and pi, the value is ~0, meaning the color is incorrect.

Is there a way to alter the stream plot interpolation parameters? Or effectively include periodic boundary conditions on the azimuth?

Thanks

---

<div class="post-metadata">

### Author: ![chicheng](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/cab0a1/32.png) [@chicheng](https://discourse.paraview.org/u/chicheng)
#### Post date: [November 29, 2023, 7:02pm UTC](https://discourse.paraview.org/t/displaying-azimuthal-information-with-a-cyclic-colormap/12830/2 "2023-11-29T19:02:59Z")

</div>

Hi,

I’m having a similar problem except I’ve created a contour plot and I’ve colored the surface by a value which ranges from [-pi, pi]. I used the hsv colormap which is cyclic so the end points -pi and pi are the same color. However there are points where I have values of -pi and pi next to each other and paraview colors the surface between a color in the middle of the colormap not the color at the end points.

Does anyone have a solution for plotting with cyclic colormaps which avoids this issue?

Thanks
