How do you plot a line on a function defined by colors?

Hello, I want to plot a line on a color defined function (enclosed example below), such that the line follows the boarders between colors. I don't want to plot a line that roughly follows the color boarders but follows the boarder exactly based on the change in color. However, I am unsure how to acomplish this. Any help appreciated.
Example:

3 个评论

Is that a contourf() output? Or is it an imagesc() or imshow() ? or a pcolor() ?
Does the underlying data have sharp data boundaries, or is the underlying data continuous ?
It is an imagesc(). The underlying data has sharp data boudaries.
Could you attach the data? Use the paperclip button to attach.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Orange 的更多信息

产品

版本

R2019b

提问:

2023-10-19

Community Treasure Hunt

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

Start Hunting!

Translated by