How to spin the colormap in 2 different circles in matlab

  • Context: MATLAB 
  • Thread starter Thread starter ThunderLight
  • Start date Start date
  • Tags Tags
    Circles Matlab Spin
Click For Summary
SUMMARY

This discussion focuses on rotating two plotted circles in MATLAB using the Jet colormap while maintaining their original angle. The user encounters limitations with the Spinmap function, which only affects one circle and alters the angle view. An alternative solution suggested is utilizing the circshift() function to manipulate the colormap independently for each circle. This approach allows for spinning the colormap in opposite directions without changing the overall angle view.

PREREQUISITES
  • Familiarity with MATLAB programming
  • Understanding of colormaps in MATLAB, specifically Jet colormap
  • Knowledge of the Spinmap function in MATLAB
  • Basic understanding of the circshift() function in MATLAB
NEXT STEPS
  • Research the MATLAB circshift() function for colormap manipulation
  • Explore advanced colormap techniques in MATLAB
  • Learn about custom colormap functions in MATLAB
  • Investigate the use of multiple axes in MATLAB for independent plotting
USEFUL FOR

MATLAB users, data visualizers, and researchers looking to enhance their graphical representations with dynamic colormap effects.

ThunderLight
Messages
27
Reaction score
2
Hi,

I'm trying to rotate 2 different plotted circles in matlab, which have the Jet colourmap.
Colormap has the Spinmap function, but when I use it, it only spins the Jet colormap in 1 circle, leaving out the other.

I would like to spin the Jet colormap in2 different circles in opposite directions, and not have the angle view changed from what I originally had. The Spinmap function seems to change the angle, and occupy the entire screen.

Is there any other way?
 
Physics news on Phys.org
Have you tried using circshift() on the colormap?
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
22K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
5
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K