Skip to content

Instantly share code, notes, and snippets.

@donkarlo
Created January 20, 2023 14:07
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/6ddd5840b9105b1270d693e8a88d273c to your computer and use it in GitHub Desktop.
Save donkarlo/6ddd5840b9105b1270d693e8a88d273c to your computer and use it in GitHub Desktop.
@staticmethod
def plotNew(gpsNormalTestTimeAbnValsList:list,lidarNormalTestTimeAbnValsList:list):
matplotlib.use("Qt5Agg")
plotColsNum = max (len(gpsNormalTestTimeAbnValsList),len(lidarNormalTestTimeAbnValsList))
fig, axes = plt.subplots(plotColsNum, 2)
for plotRowCounter in range(plotColsNum):
axes[plotRowCounter][0].plot(gpsNormalTestTimeAbnValsList[plotRowCounter][1][:,0]
,gpsNormalTestTimeAbnValsList[plotRowCounter][1][:,1]
,label = gpsNormalTestTimeAbnValsList[plotRowCounter][2]
)
axes[plotRowCounter][1].plot(lidarNormalTestTimeAbnValsList[plotRowCounter][1][:,0]
,lidarNormalTestTimeAbnValsList[plotRowCounter][1][:,1]
, label=lidarNormalTestTimeAbnValsList[plotRowCounter][2]
)
plt.legend()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment