How to scale the axis while ploting some function which changes its size on every iteration?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Abdullah
el 2 de En. de 2014
Comentada: Abdullah
el 2 de En. de 2014
I have made a program for fem transient analysis for wave propagation. The wave seems to change its size due to time integration method(energy is not conserved). I used 'plot' command with 'drawnow', the axis keep changing size I want to fix y-axis to a scale at-least the maximum value of the wave so that I can see bigger picture of what is going on. I try to use ylim([min max]) but program does not follow this command at all.
0 comentarios
Respuesta aceptada
Amit
el 2 de En. de 2014
Use ylim([min max]) right after plot(x,y). I think you might have put ylim after drawnow, this adjust the y-axis but after plotting it.
Más respuestas (0)
Ver también
Categorías
Más información sobre Graphics Performance en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!