kitti.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:prototype 作者: chutsu 项目源码 文件源码
def plot_accelerometer(self):
        """Plot accelerometer"""
        accel_x = [data["af"] for data in self.oxts]
        accel_y = [data["al"] for data in self.oxts]
        accel_z = [data["au"] for data in self.oxts]

        fig = plt.figure()
        ax1 = fig.add_subplot(311)
        ax2 = fig.add_subplot(312)
        ax3 = fig.add_subplot(313)

        ax1.plot(self.timestamps, accel_x)
        ax2.plot(self.timestamps, accel_y)
        ax3.plot(self.timestamps, accel_z)

        plt.suptitle("Accelerometer")
        ax1.set_xlabel("Date Time")
        ax1.set_ylabel("ms^-2")
        ax2.set_xlabel("Date Time")
        ax2.set_ylabel("ms^-2")
        ax2.set_xlabel("Date Time")
        ax3.set_ylabel("ms^-2")
        ax1.set_xlim([self.timestamps[0], self.timestamps[-1]])
        ax2.set_xlim([self.timestamps[0], self.timestamps[-1]])
        ax3.set_xlim([self.timestamps[0], self.timestamps[-1]])
        fig.tight_layout()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号