Info

This question is closed. Reopen it to edit or answer.

How can I extract the CLim color id of an imagesc plot?

1 view (last 30 days)
Alessandro Maria Laspina
Alessandro Maria Laspina on 23 Nov 2021
Closed: Alessandro Maria Laspina on 23 Nov 2021
For an imagesc plot, I have set the color limits of the cells between 0 and 100. I would like to know what the color id of each cell is, whether by reverse calculation or extracting the data from the plot. I know for a fact that it is not a linear scale, this is because my top two values are 33200 and 833, meaning that the second value would be around .28 of the nominal if we scale everything between 0 and 1 for color id. Yet, numerous values end up being of the same color. I would like to know how clim determines based on the cell value what color it takes up.

Answers (0)

Community Treasure Hunt

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

Start Hunting!