Fix plot label.

PiperOrigin-RevId: 713635908
Change-Id: Icbeef26053b10747024ea65b23ca86816f4fdb2e
This commit is contained in:
Andrea Gesmundo
2025-01-09 05:22:44 -08:00
committed by Copybara-Service
parent f7d38dac62
commit 419da17395
+2 -2
View File
@@ -1603,13 +1603,13 @@
"source": [
"ax = plt.gca()\n",
"\n",
"ax.plot(np.asarray(times), np.asarray(sensordata), label='timestep = {:2.2g}ms'.format(1000*dt))\n",
"ax.plot(np.asarray(times), np.asarray(sensordata), label=[f\"axis {v}\" for v in ['x', 'y', 'z']])\n",
"\n",
"# finalize plot\n",
"ax.set_title('Accelerometer values')\n",
"ax.set_ylabel('meter/second^2')\n",
"ax.set_xlabel('second')\n",
"ax.legend(frameon=True, loc='lower right');\n",
"ax.legend(frameon=True, loc='lower right')\n",
"plt.tight_layout()"
]
},