How can I plot a scatter plot over a heatmap ?
Show older comments
I've plotted a heatmap using "imagesc" function and I want to plot a scatter plot over this, how do I do this? The code is shown below, the array "square" is what I've used to plot the heatmap and I want to plot a scatter plot of a 60x2 vector with each column representing the x and y coordinates respectively:
imagesc(square);
axis xy
colormap jet; % Colour scheme of heatmap
colorbar
Answers (1)
KSSV
on 3 Apr 2018
0 votes
Read about hold on
2 Comments
Xavier Flores Cabezas
on 20 Sep 2020
hold on doesn't work over colormap
KSSV
on 20 Sep 2020
OP used imagesc.
Categories
Find more on Data Distribution 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!