Setting Axis limits as a curve plots real time

In the image above, my program is set to simulate a 4 bar mechanism. So, how it works is the top left plots the motion of the mechanism as the crank rotates 360 degrees around. Once that finishes, the top right plot starts plotting the angles theta 3 and 4 as a function of the crank angle. As you can see, for some reason or another it plots it way out of focus.
In this 2nd image, you can see the finished plot for the top right graph. As you can see, the the plot is now zoomed in once it completed plotting the curves then moves on to the bottom left plot and so forth until all 4 plots are completed.
My question is, how exactly do I edit my code so that it plots these curves with a good aspect ratio or something that gives a close look as it plots the curves as opposed to way out of focus.
Here is my code for that plot:

Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Asked:

on 11 Apr 2013

Community Treasure Hunt

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

Start Hunting!