フィルターのクリア

How do I concentrate my interpolation coloring around specific data ranges?

5 ビュー (過去 30 日間)
Hannah
Hannah 2013 年 6 月 5 日
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

採用された回答

Andrew Newell
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 件のコメント
Hannah
Hannah 2013 年 6 月 10 日
Ohh, now its interpolated again. Is there a way to concentrate the color so that patch stays blue until about 4000 or so and then starts interpolating?
Andrew Newell
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 ExchangeColormaps についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by