Discussion:
Help, Log scale for Contour Plots ?
(too old to reply)
G. Collins
2015-09-29 20:50:03 UTC
Permalink
Is this what you want to do?
contour(peaks)
set(gca,'xscale','log')
Drew
Did you happen to notice that the isolines and the fill colors scale differently after applying the log scale to the x-axis? The isolines and fill colors don't match up in the log axes. I don't understand why this happens. Any thoughts?
Steven Lord
2015-09-29 22:10:03 UTC
Permalink
Post by G. Collins
Is this what you want to do?
contour(peaks)
set(gca,'xscale','log')
Drew
Did you happen to notice that the isolines and the fill colors scale
differently after applying the log scale to the x-axis? The isolines and
fill colors don't match up in the log axes. I don't understand why this
happens. Any thoughts?
Seems to me to be working fine in release R2015b. Can you post an example
where the colors are different after switching to log scale? Can you also
post the release you're using -- are you using one from before the new
graphics system was released in release R2014b?
--
Steve Lord
***@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com
G. Collins
2015-10-01 22:33:03 UTC
Permalink
Post by Steven Lord
Seems to me to be working fine in release R2015b. Can you post an example
where the colors are different after switching to log scale? Can you also
post the release you're using -- are you using one from before the new
graphics system was released in release R2014b?
Thanks Steve. I'm running 2015b. I posted a screenshot here:

Loading Image...

I am not able to post the data set I am using, and unfortunately I could not re-create the problem using data from the peaks function or dummy data.

(BTW, is it possible to attach an image directly to a MATLAB Newsgroup post? I could not find a link to do this :-\ )
Steven Lord
2015-10-05 14:13:31 UTC
Permalink
Post by G. Collins
Post by Steven Lord
Seems to me to be working fine in release R2015b. Can you post an example
where the colors are different after switching to log scale? Can you also
post the release you're using -- are you using one from before the new
graphics system was released in release R2014b?
http://postmyimage.com/img2/685_Screen_Shot_2015_09_29_at_2.11.png
I see one plot here; since the X axis is in log scale, I assume this is the
"after" picture. Where's the "before" picture?
Post by G. Collins
I am not able to post the data set I am using, and unfortunately I could
not re-create the problem using data from the peaks function or dummy
data.
(BTW, is it possible to attach an image directly to a MATLAB Newsgroup
post? I could not find a link to do this :-\ )
No, it is not possible.
--
Steve Lord
***@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com
G. Collins
2015-10-05 20:56:04 UTC
Permalink
Post by Steven Lord
I see one plot here; since the X axis is in log scale, I assume this is the
"after" picture. Where's the "before" picture?
Loading Image...
Everything looks fine when both scales are linear.

Continue reading on narkive:
Loading...