Fix plot label.
PiperOrigin-RevId: 713635908 Change-Id: Icbeef26053b10747024ea65b23ca86816f4fdb2e
This commit is contained in:
committed by
Copybara-Service
parent
f7d38dac62
commit
419da17395
@@ -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()"
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user