Graph with origin other than zero

4 visualizaciones (últimos 30 días)
rej
rej el 3 de Mzo. de 2015
Comentada: Luuk van Oosten el 3 de Mzo. de 2015
Hello, I have a questions regarding plotting data in graphs. I have data for two scales ranging from 1-10, which I would like to plot on the x- and y-axis in a graph. However I would like to have the axes crossing in scale point 5 in each of the axis. I.e. I want the origin to be in 5 instead of 0.
Would be very thankful for help in this!

Respuestas (1)

Luuk van Oosten
Luuk van Oosten el 3 de Mzo. de 2015
Editada: Luuk van Oosten el 3 de Mzo. de 2015
There is a variety of things you could do to achieve this. An example; set the axis range using:
axis([ xmin xmax ymin ymax ])
so in your case that would be something like:
axis([ 5 10 5 10])
You might want to have a look here.
  2 comentarios
rej
rej el 3 de Mzo. de 2015
Thanks a lot!! This was what I needed :)
Luuk van Oosten
Luuk van Oosten el 3 de Mzo. de 2015
You are welcome. Could you accept my answer in that case?

Iniciar sesión para comentar.

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by