MATLAB Answers

Logaritmic scale in contour map via Matlab.

Ravnalis Michael 님이 질문을 제출함. 10 Oct 2019
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?

  댓글 수: 0

로그인 to comment.

답변 수: 1

Answer by thoughtGarden on 10 Oct 2019

You can set the scale to log like so:
set(gca,'xscale','log','yscale','log');

  댓글 수: 1

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?

로그인 to comment.



Translated by