connecting points with the same value
Show older comments
I have a very dense scatter plot with a coloured bar and the points are colour coded according to the value shown in the colour bar. I want to connect the points which bear the same z value. Please help.
Answers (1)
REad about contour
Z = peaks(100) ;
pcolor(Z) ;
shading interp
hold on
contour(Z,[1 1],'k') % show/join the value 1 with black line
Categories
Find more on Scatter 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!
