Logaritmic scale in contour map via Matlab.

3 ビュー (過去 30 日間)
Ivan Mich
Ivan Mich 2019 年 10 月 10 日
コメント済み: Ivan Mich 2019 年 10 月 10 日
Hello,
I have a question about a code. Well, I have created a contour map with contourf command.
I would like to convert the linear scale bar to logaritmic scale bar.
I ve used these commands:
[loni, lati] = meshgrid(...
linspace(min(lon),max(lon)),...
linspace(min(lat),max(lat)));
Tempi = griddata(lon,lat,Temp, loni,lati);
contourf(loni,lati,Tempi)
could anyone help me?

回答 (1 件)

thoughtGarden
thoughtGarden 2019 年 10 月 10 日
You can set the scale to log like so:
set(gca,'xscale','log','yscale','log');
  1 件のコメント
Ivan Mich
Ivan Mich 2019 年 10 月 10 日
Ok, I would like to find a way to make a new contour plot. In this plot I would like to keep thw "old" colorbar (I mean the bar of my contour values before to be Logaritmhited).
Could anyone help me?

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

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by