How do I concentrate my interpolation coloring around specific data ranges?
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi, im trying to plot an area graph with interpolated shading, in which i use patch(). Everything works out perfectly but i'm graphing a set of datapoints that range from 4500-5500. So naturally when I put the plot range to that value it only shows one color. Is there a way to concentrate the interpolation between the max and min value points of my data?
I had to add zeroes in the beginning and end of my data vector so I could enclose the data between x axis and my value points
댓글 수: 0
채택된 답변
Andrew Newell
2013년 6월 6일
The simplest solution would be to change the mapping of data values to the colormap using caxis, e.g.:
caxis([4500 5500])
댓글 수: 6
Andrew Newell
2013년 6월 12일
Perhaps the easiest approach would be to tweak the colormap using the colormapeditor. The documentation also describes how you can save the colormap after you have edited it.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Polygons에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!