Quantcast
Channel: Acoustics - Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 75

Continuous Cyclic Color Table Plot

$
0
0
Hi,

I am trying to visualize the phase of an acoustic mode. I calculate the phase of my pressure field via: atan2(real(p),imag(p)) where p is the acoustic pressure.

I rescale the phase to a -180 to +180 degree interval and plot it as a surface using the cyclic colortable. The result looks fine, except that there are discontinuities in the surface plot where the phase jumps from -180 (red) to +180 (red) between cells. The color of the surface plot changes through all of the intermediate values producing 1 cell wide "rainbow bands" throughout the surface plot.

Is there a way to make a continuous cyclic color table plot? i.e. one where between cells with -180 (red) and +180 (red) the color stays red?

thanks

Viewing all articles
Browse latest Browse all 75

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>