Set limit for colorbar in log 3D plot

2 ビュー (過去 30 日間)
Alberto Mora
Alberto Mora 2017 年 5 月 30 日
コメント済み: Alberto Mora 2017 年 5 月 31 日
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 件のコメント
KSSV
KSSV 2017 年 5 月 30 日
Use shading interp after plot....
Alberto Mora
Alberto Mora 2017 年 5 月 30 日
編集済み: Alberto Mora 2017 年 5 月 31 日
Dear KSSV, I think that the result is remove just the grid on the surface. But it do not solve the problem. In practice I want that the graph is colored from blue to red color, while now is all blue.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2017 年 5 月 31 日
If you are using R2014b or newer, then
cb = colorbar();
cb.Ruler.Scale = 'log';
  1 件のコメント
Alberto Mora
Alberto Mora 2017 年 5 月 31 日
Thank you so much Walter!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by