How can I plot a scatter plot over a heatmap ?
이전 댓글 표시
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
답변 (1개)
KSSV
2018년 4월 3일
0 개 추천
Read about hold on
댓글 수: 2
Xavier Flores Cabezas
2020년 9월 20일
hold on doesn't work over colormap
KSSV
2020년 9월 20일
OP used imagesc.
카테고리
도움말 센터 및 File Exchange에서 Data Distribution Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!