Create Own Legend With Colors and Boxes
Show older comments
So basically what I've done is created a figure that shows the relative densities of a bunch of point cloud data. Then using getrect I will be able to have the user click and drag a smaller sample area. The only thing I want to do to enhance this is to create a legend which would basically be of the form:
White 0
Red 1 - 6400
Orange 6400 - 80000
Yellow 80001 - 500000
Green 500001 or More

Now when I plotted these areas I did not use a typical method. I ran a loop that determined where to plot an area, and colored the area according to the specifications listed above. I don't have a data set for which to throw into a legend function.
Accepted Answer
More Answers (0)
Categories
Find more on Legend 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!