Skip to content

Commit

Permalink
change plot axis to always be 'square'
Browse files Browse the repository at this point in the history
  • Loading branch information
gforsyth committed Aug 28, 2014
1 parent 72e9e5d commit cefe059
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lessons/01_phugoid/phugoid.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def plot_flight_path(yt, y0, theta0):
# generate a plot
plt.figure(figsize=(11,8))
plt.plot(x, -y,'k-',label="$z_t=\ %.1f,\\,z_1=\ %.1f,\\,\\theta_1=\ %.2f$" % (yt, y[0], theta0))
plt.axis('equal')
plt.title("Flight path for C = %.4f" % C)
plt.xlabel("$x$")
plt.ylabel("$z$")
Expand Down

0 comments on commit cefe059

Please sign in to comment.