39 views (last 30 days)

Show older comments

Hi The question is pretty much self explanatory given the following example

The following code works:

figure

A = rand(200,200,3);

axes('XScale','log','YScale','log')

hold on

image([1e1 1e2],[1e2 1e4],A)

The following code doesn't work:

figure

A = rand(200,200,3);

axes('XScale','log','YScale','log')

hold on

image([1e1 1e2],[1e2 1e5],A)

The only difference between the two codes is the y coordinate of the top corner (1e4 in the first example, 1e5 in the second).

Why does this happen and how can I fix it?

Walter Roberson
on 9 Apr 2018

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

Start Hunting!