Clear Filters
Clear Filters

How to manually set axis and Label for colorcloud funktion?

1 view (last 30 days)
Helo everyone! I'm new to MatLab and recently I was working with the colorcloud funktion. I was trying to generate a 'HSV' point cloud figure to analyze saturation and hue shift between images (and also to have a nice visual representation). I am viewing the image from above, so on the X and Y axis. Now I realised that the cone is made up of 8 axis instead of 6 for (R,G,B,Cy,My,Ye). So I was wondering if there is a way to manipulate the axis of the HSV cone to achive the representation I got in the image I provided here (maybe also with labels)
Thank you very much in advance!

Answers (1)

Raghvi
Raghvi on 16 Feb 2023
Hey Dominic,
You can access different properties of axes by using the following commands and changing them as per your need. The following code shows how to change the perspective of the colorcloud to get the top view.
>> x=colorcloud(RGB,'hsv');
>> x.Children.CameraPosition=[0 0 8];
Likewise, you can change other properties to get the labels you desire. Check out the properties of axes :
If you are not so comfortable with code, you can also play with property inspecter in the figure window.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!