Skip to content

Commit 16efcfa

Browse files
committed
Fixed some naming conventions
1 parent a6bbce0 commit 16efcfa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

oneD_kinematic.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def vehicle(x, u, T):
5353
plt.rc("savefig", bbox="tight")
5454

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

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

7272
# Save the plot
73-
plt.savefig(pdf_path + "oneD_kinematic_fig1.pdf")
73+
plt.savefig(PDF_PATH + "oneD_kinematic_fig1.pdf")
7474

7575
# %%
7676
# MAKE AN ANIMATION
@@ -82,7 +82,7 @@ def vehicle(x, u, T):
8282
vehicle = Cart(LENGTH)
8383

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

8787
# %%
8888
# DISPLAY PLOTS

0 commit comments

Comments
 (0)