How to set scatter plot colors in order to adjust all plots to a same reference?
Ältere Kommentare anzeigen
Hi all,
I am intending to define the color of my scatter plots based on the same reference for "zaxis", lets suppose [8*10^-5,8*10^-3]. The code that I applied just changed the scale of the color bar, but did not change the color on the plot. I would like to change the colors of the plots to values higher than the [max(z), min(z)] and also to do another plot based on values lower than the max and min. To sum up, the scatter plot have exhibited just max and min colors automatically.
I tried
%
axis manual
axis([min(position), max(position), min(depth), max(depth), 8*10^-5, 8*10^-3,8*10^-5, 8*10^-3])
colorbar
and also
%
colorbar
caxis([ 8*10^-5 , 8*10^-3])
I tried other intermediary values between "min and max" and higher than "min and max", but the representation of the plot still reconfigured to the min and max.
Thank you for your time,
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Title 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!


