setting x-axis points distance in line graphs

1 visualización (últimos 30 días)
Osman
Osman el 22 de Jul. de 2012
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?

Respuestas (1)

Walter Roberson
Walter Roberson el 22 de Jul. de 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?

Categorías

Más información sobre Graph and Network Algorithms en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by