colorbar in 3d patch
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hi, iam using this function http://www.mathworks.cn/matlabcentral/fileexchange/28497-plot-a-3d-array-using-patch to plot 3D array,it did a great job,but since most of my data are in the range from 0 to 4,i wish i can edit the colorbar and fix it is upper and lower limits to 0 and 4,then any data value bigger than 4 mapped to 4,and data value less than zeros mapped to zero.i would like this change to compare my data values with color.plz some help
0 commentaires
Réponses (2)
Walter Roberson
le 6 Fév 2012
How about if you use
DataToPlot = min( max(YourData, 0), 4);
This will restrict your data to that range before going in to the plotting routine, which would be easier than editing the plotting routine.
0 commentaires
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!