Overlay curves over heatmap
Ältere Kommentare anzeigen
Hello everyone,
I was wondering if it is possible to plot curves over heatmap. It goes something like this:
X = 20:20:1000;
Y = 100:-2:1;
Z = randi(100,50,50);
h = heatmap(X,Y,Z);
hold on
for ii=1:5
curve = ii+1000./X;
plot(X, curve)
end
hold off
I want the curves to be above the heatmap. For example, in the figures below,

the right figure should be on top of the left figure.
Any ideas?
Thanks in advance!
Akzeptierte Antwort
Weitere Antworten (1)
Ahmed
am 27 Aug. 2024
0 Stimmen
Use MATLAB's imagesc instead of heatmap
Kategorien
Mehr zu Data Distribution Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
