Want to change the range of a single axis of a plotyy figure
Mostrar comentarios más antiguos
Hi
I want my x-axis to be tight to the data on a plotyy graph. I can't seem to do it without messing up the axes.
My data ranges from 1e-5 to 1e3 and it's a semilogx plotting function. Is there a way I can use axis([...]) to specify all three ranges (x, y1, y2) at once?
Thanks for any help Mike
Respuesta aceptada
Más respuestas (1)
Muruganandham Subramanian
el 11 de Dic. de 2012
Editada: Muruganandham Subramanian
el 11 de Dic. de 2012
figure;
ylim([1e-5 1e3]);
or
goto Edit -> Axes Properties -> then select X axis and change range as your need
3 comentarios
Michael
el 11 de Dic. de 2012
Muruganandham Subramanian
el 11 de Dic. de 2012
Editada: Muruganandham Subramanian
el 11 de Dic. de 2012
If you need to change x axis range is b/w 1e-5 to 1e3, you can use
xlim([1e-5 1e3])
or if it's not, can you explain precisely?
Michael
el 11 de Dic. de 2012
Categorías
Más información sobre Two y-axis en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!