Cannot set axes limits

2 visualizaciones (últimos 30 días)
Mikhail
Mikhail el 17 de Sept. de 2014
Comentada: Mikhail el 17 de Sept. de 2014
Hi, I am working with GUI interface. I want to set ,y own xlimits and ylimits. But I cannot do it:
figure('name','MomentFinder')
axes('OuterPosition',[0,0.2,1,0.8],'XLim',[-2 50],'YLim',[-2 35],'XLimMode','manual', 'YLimMode','manual');
plot(gca,file,vel1,'-',file,vel2,'-');
Matlab plot's vel1(file) in it's own limits. And I want the limits to be static. What is wrong?
Thanks

Respuesta aceptada

José-Luis
José-Luis el 17 de Sept. de 2014
Set the limits after you issue the plot() command.
  3 comentarios
Image Analyst
Image Analyst el 17 de Sept. de 2014
Perhaps using "hold on" in between axes() and plot() would do it, but I prefer doing what Jose-Luis said.
Mikhail
Mikhail el 17 de Sept. de 2014
Thanks

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by