refine axis values figure

Hey
A small problem , how can I refine y axis !! This is an example
xx=[0 1 2 3 4]
yy=[0.0000001 1.0000002 2.0000003 3.0000005 4.0000006]
figure
plot(xx,yy,'-*')
it give this figure (the left size )
but wehen I do a zoom , I ghave juste 2 in the y axis ( the right side ) , how should I do for 2.000001 2.000002 ..... , I need more precision ,
Thanks

1 comentario

Azzi Abdelmalek
Azzi Abdelmalek el 26 de Jun. de 2015
[how should I do for 2.000001 2.000002] This is not clear

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 26 de Jun. de 2015

0 votos

You create a zoom object and set the callback function for it to decide the appropriate resolution for ticks and set() the xtick positions and xticklabel strings.
You will probably also want to rotate the labels so they do not overlap with each other. Rotating the labels is a bit of a messy process before R2014b but from R2014b onward is easier. I think it likely there is something in the File Exchange that would do label rotation on your behalf.

Categorías

Más información sobre Data Exploration en Centro de ayuda y File Exchange.

Preguntada:

el 26 de Jun. de 2015

Respondida:

el 26 de Jun. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by