setting x-axis points distance in line graphs

3 views (last 30 days)
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?

Answers (1)

Walter Roberson
Walter Roberson on 22 Jul 2012
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?

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!