Set limit for colorbar in log 3D plot
조회 수: 1 (최근 30일)
이전 댓글 표시
Dear all, I am plotting a 3D graph using a Z logaritmic axis. The surface have got a vertical asynthos (Z axis). For this reason I use Zlim([minDesidValue maxDesidValue]) to limit the Z axis. Consequently I set caxis([minDesidValue maxDesidValue]). However, considering the Z axis is logaritmic, the colorbar "draw" my surface in linear method, and so with unsatisfying results (I suppose that is caused by the linear relation between coloration and colorbar limits). In atteached you can see the figure. Best regars. Alberto Mora
댓글 수: 2
채택된 답변
Walter Roberson
2017년 5월 31일
If you are using R2014b or newer, then
cb = colorbar();
cb.Ruler.Scale = 'log';
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Colorbar에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!