Skip to content

Commit

Permalink
Fixed some naming conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
botprof committed Sep 9, 2024
1 parent a6bbce0 commit 16efcfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions oneD_kinematic.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def vehicle(x, u, T):
plt.rc("savefig", bbox="tight")

# Change these to the locations where you wish to store outputs
pdf_path = "../agv-book/figs/ch2/"
gif_path = "../agv-book/gifs/ch2/"
PDF_PATH = "../agv-book/figs/ch2/"
GIF_PATH = "../agv-book/gifs/ch2/"

# Plot the state (x) and input (u) vs time (t)
fig1 = plt.figure(1)
Expand All @@ -70,7 +70,7 @@ def vehicle(x, u, T):
plt.xlabel(r"$t$ [s]")

# Save the plot
plt.savefig(pdf_path + "oneD_kinematic_fig1.pdf")
plt.savefig(PDF_PATH + "oneD_kinematic_fig1.pdf")

# %%
# MAKE AN ANIMATION
Expand All @@ -82,7 +82,7 @@ def vehicle(x, u, T):
vehicle = Cart(LENGTH)

# Create and save the animation
ani = vehicle.animate(x, T, True, gif_path + "oneD_kinematic.gif")
ani = vehicle.animate(x, T, True, GIF_PATH + "oneD_kinematic.gif")

# %%
# DISPLAY PLOTS
Expand Down

0 comments on commit 16efcfa

Please sign in to comment.