Created
August 13, 2022 21:20
-
-
Save donkarlo/d46163105f87f2d87ec5ef7e50cf9acf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]) | |
fig.canvas.draw() | |
fig.canvas.flush_events() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment