How to make a log plot with a graph?

1 view (last 30 days)
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))

Accepted Answer

Kelly Kearney
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.
  1 Comment
Ashley
Ashley on 26 Jun 2013
thank you, that's worked exactly how i wanted it to :)

Sign in to comment.

More Answers (1)

Sean de Wolski
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.
  2 Comments
Ashley
Ashley on 26 Jun 2013
thanks for advice
this only relabels axis, it doesn't actually do any rearranging of the image itself

Sign in to comment.

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!