Is it possible to make contour graph with a semilogy scale colorbar?

28 views (last 30 days)
Hi! I'm trying to plot power spectra that I calculated for each latitude, but the values can only be well seen in log scale.
I am trying to plot a "normal" contourf/pcolor plot [pcolor(frequency,latitude,power_spectra)], but I can only find a way to plot a log scale of the powerspectra [pcolor(log(power_spectra))] and not even with the y and x axis that I need. But regardless, I'd like to only have the y axis as a log scale, not the whole plot.
Is there a way to do it in Matlab?
Thank you all very much,
  3 Comments
Fernanda Nascimento
Fernanda Nascimento on 29 Nov 2018
Yes, but when I do that my latitude values (the YScale) end up in a log, which does not help me very much, since I need the contour plots (ZScale) in log, and not the Y one. I wish there was a way to put the ZScale in a semilog.... but I guess I'll have to use it as just log.
Walter Roberson
Walter Roberson on 29 Nov 2018
You can
set(gca,'ZScale', 'log')
but your question said,
"I'd like to only have the y axis as a log scale"
which is incompatible.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!