필터 지우기
필터 지우기

Color map: Changing scale using pcolor

조회 수: 18 (최근 30일)
Siddharth Gopujkar
Siddharth Gopujkar 2020년 12월 7일
댓글: Walter Roberson 2020년 12월 7일
I am using pcolor to plot data. The code is written below and the image generated is also shown.
This scale does not show the trends properly. How can I change the scale so that the same scale (-15 to -50) has more colors included in it and the contrast is better on the graph?
Code
[freq_grid,rpm_grid] = meshgrid(freq,RPM100_mean);
figure
s=pcolor(freq_grid,rpm_grid, log(resp1)');
shading interp
colorbar
The three .mat files 'freq', 'RPM100_mean' and 'resp1' have been attached below if requried.
Thank you!
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 12월 7일
I would suggest experimenting with different colormaps, such as colormap(hsv)

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Colormaps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by