Skip to content

Commit 7924077

Browse files
committed
Fixes axes labels
1 parent b1a8b95 commit 7924077

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fws_beacons_ekf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def wrap_to_pi(angle):
341341
)
342342
plt.plot(t, x[0, :] - x_hat[0, :], "C0", label="Error")
343343
plt.grid(color="0.95")
344-
plt.ylabel(r"$x$ [m]")
344+
plt.ylabel(r"$e_x$ [m]")
345345
plt.setp(ax2a, xticklabels=[])
346346
plt.legend()
347347
ax3b = plt.subplot(412)
@@ -356,7 +356,7 @@ def wrap_to_pi(angle):
356356
)
357357
plt.plot(t, x[1, :] - x_hat[1, :], "C0", label="Error")
358358
plt.grid(color="0.95")
359-
plt.ylabel(r"$y$ [m]")
359+
plt.ylabel(r"$e_y$ [m]")
360360
plt.setp(ax2b, xticklabels=[])
361361
ax3c = plt.subplot(413)
362362
sigma[2, :] = np.sqrt(s1 * P_hat[2, 2, :])
@@ -369,7 +369,7 @@ def wrap_to_pi(angle):
369369
label=str(100 * (1 - ALPHA)) + r" \% Confidence",
370370
)
371371
plt.plot(t, (x[2, :] - x_hat[2, :]) * 180.0 / np.pi, "C0", label="Error")
372-
plt.ylabel(r"$\theta$ [deg]")
372+
plt.ylabel(r"$e_\theta$ [deg]")
373373
plt.grid(color="0.95")
374374
plt.setp(ax2c, xticklabels=[])
375375
ax3d = plt.subplot(414)
@@ -383,7 +383,7 @@ def wrap_to_pi(angle):
383383
label=str(100 * (1 - ALPHA)) + r" \% Confidence",
384384
)
385385
plt.plot(t, (x[3, :] - x_hat[3, :]) * 180 / np.pi, "C0", label="Error")
386-
plt.ylabel(r"$\phi$ [deg]")
386+
plt.ylabel(r"$e_\phi$ [deg]")
387387
plt.grid(color="0.95")
388388
plt.xlabel(r"$t$ [s]")
389389

0 commit comments

Comments
 (0)