필터 지우기
필터 지우기

Reverting the caxis index

조회 수: 2 (최근 30일)
federico nutarelli
federico nutarelli 2021년 7월 1일
편집: Yazan 2021년 7월 1일
Hi all, I have made the following image (displayed). I would like the caxi to be inverted, i.e. min = 0.4 and max = 0.1. So the axis should be something like:
0.1
0.15
0.2
0.25
0.3
0.35
0.4
Ideally the code should look as follows:
caxis('manual')
caxis([round(max(auc_weighted.AUC_weighted_new),1) round(min(auc_weighted.AUC_weighted_new),1)])
Is it possible to do so?
I thought about reverting the sign but then I would like the minus sign not to display in the image...
Thank you,
Federico
  댓글 수: 5
Yazan
Yazan 2021년 7월 1일
편집: Yazan 2021년 7월 1일
It is pretty straightforward to invert the colormap. Just insert this in your code:
myColorMap = flipud(hsv2rgb(hsv1));
federico nutarelli
federico nutarelli 2021년 7월 1일
Thanks it works

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

답변 (1개)

Scott MacKenzie
Scott MacKenzie 2021년 7월 1일
편집: Scott MacKenzie 2021년 7월 1일
To reverse the order of colors, just change
colormap(myColorMap);
to
colormap(flipud(myColorMap));

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by