Skip to content

Instantly share code, notes, and snippets.

@donkarlo
Created August 13, 2022 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donkarlo/f5baca4ca0b198b284b557bc41f323dc to your computer and use it in GitHub Desktop.
Save donkarlo/f5baca4ca0b198b284b557bc41f323dc to your computer and use it in GitHub Desktop.
# test scenario abn compute
mpl.use("TkAgg")
plt.ion()
fig, axes = plt.subplots(2, 1)
line1, = axes[0].plot(np.random.randn(100))
plt.show(block=False)
def updateGpsPlot(robotSpecificGpsTimeRows):
line1.set_xdata( robotSpecificGpsTimeRows[:, 1])
line1.set_ydata( robotSpecificGpsTimeRows[:, 2])
axes[0].draw_artist(axes[0].patch)
axes[0].draw_artist(line1)
fig.canvas.update()
fig.canvas.flush_events()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment