How to make a log plot with a graph?
1 view (last 30 days)
Show older comments
Hi I am trying to make a graph so that it becomes log scale. This is the graph i am trying to do this with:
I am trying to get this graph so that those lines at the bottom become more spaced out, and the dots around the place at the top become more grouped together, so that overall , the graph is much easier to interpret by humans.
At the moment , I am just looking for a way to manipulate the function itself (i.e. f(x)), so that it looks like i've done a log plot when really I haven't, since in Matlab, there doesn't seem to be much of a way to do this with the "imagesc" function (if anyone is good with matlab and knows how to do a log plot with this function, please tell!)
I've been working on this for a long time, is anyone out there able to enlighten me?
Kind regards, Ashley
[product version: 8.1.0.604 (R2013a))
0 Comments
Accepted Answer
Kelly Kearney
on 26 Jun 2013
Would you be able to switch to using pcolor instead of imagesc? In that case, you could set the 'Yscale' as suggested by Sean (and actually see a change). I'm not an image processing person myself, so there may be other advantages to using image and imagesc over pcolor, but I usually find the latter to be more useful when dealing with skewed coordinate systems of any sort.
More Answers (1)
Sean de Wolski
on 26 Jun 2013
imagesc(magic(1000));
set(gca,'XScale','log');
You can set the 'YScale' to log as well if you need to.
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!