parameters: (self, plot_suffix=None)
docstring: Plot all acceleration lists.
docstring_summary: Plot all acceleration lists.
docstring_tokens: Plot all acceleration lists .
function: def plot_accelerations(self, plot_suffix=None):
          """Plot all acceleration lists."""
          fig = pyplot.figure()
          fig.suptitle("Accelerations")
          a_x = fig.add_subplot(111)
          for index, acc in enumerate(self.acc):
              a_x.plot(acc.time, acc.x, 'b', label='x' + self.imu_topics[index])
              a_x.plot(acc.time, acc.y, 'r', label='y' + self.imu_topics[index])
              a_x.plot(acc.time, acc.z, 'g', label='z' + self.imu_topics[index])
          pyplot.xlabel('time [s]')
          pyplot.ylabel('acceleration [m/s^2]')
          pyplot.legend()
          if self.save_plots:
              file_name = self.prefix + '_acc' if self.prefix else 'acc'
              if plot_suffix:
                  file_name += '_' + str(plot_suffix)
              file_name += '.png'
              pyplot.savefig(file_name)
function_tokens: def plot_accelerations ( self , plot_suffix = None ) : fig = pyplot . figure ( ) fig . suptitle ( "Accelerations" ) a_x = fig . add_subplot ( 111 ) for index , acc in enumerate ( self . acc ) : a_x . plot ( acc . time , acc . x , 'b' , label = 'x' + self . imu_topics [ index ] ) a_x . plot ( acc . time , acc . y , 'r' , label = 'y' + self . imu_topics [ index ] ) a_x . plot ( acc . time , acc . z , 'g' , label = 'z' + self . imu_topics [ index ] ) pyplot . xlabel ( 'time [s]' ) pyplot . ylabel ( 'acceleration [m/s^2]' ) pyplot . legend ( ) if self . save_plots : file_name = self . prefix + '_acc' if self . prefix else 'acc' if plot_suffix : file_name += '_' + str ( plot_suffix ) file_name += '.png' pyplot . savefig ( file_name )