setting x-axis points distance in line graphs

1 次查看(过去 30 天)
I have x-axis value as 10, 100, 250, 500, 1000, 2000
and y-axis values between 0 and 1. I am comparing 10 values, with 10 line plots on single graph.
I want equal gap between the points of x-axis. I used the command: set(gca,'XTick',[10, 100, 250, 500, 1000, 2000])
But, it is not displaying equal gaps. What I mean to say is that x-axis should be divided into 6 (above) points with equal spaces, as in my graph, since variation is higher from point 10 to 250, so lines are very congested. Any help in this regard please?

回答(1 个)

Walter Roberson
Walter Roberson 2012-7-22
Unfortunately, the sequence 10, 100, 250, 500, 1000, 2000, is not linear and it is also not log. Only linear and log10 have built-in support.
Is perhaps a semilogx() plot acceptable?

类别

Help CenterFile Exchange 中查找有关 Graph and Network Algorithms 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by