parameters: (self)
docstring: Plot the desired data
docstring_summary: Plot the desired data
docstring_tokens: Plot the desired data
function: def plot_result(self):
          """
          Plot the desired data
          """
          fig, axarr = plt.subplots(2, 1, sharex=True)
          plt.tight_layout()
          fig.subplots_adjust(hspace=0)
  
          axarr[0].plot(
              self.data['time'], self.data['ctlbrake'], label='Brake CMD')
          axarr[0].plot(
              self.data['time'],
              self.data['brake_percentage'],
              label='Brake Output')
          axarr[0].plot(
              self.data['time'], self.data['ctlthrottle'], label='Throttle CMD')
          axarr[0].plot(
              self.data['time'],
              self.data['throttle_percentage'],
              label='Throttle Output')
          axarr[0].plot(
              self.data['time'],
              self.data['engine_rpm'] / 100,
              label='Engine RPM')
          axarr[0].legend(fontsize='medium')
          axarr[0].grid(True)
          axarr[0].set_title('Command')
  
          axarr[1].plot(
              self.data['time'],
              self.data['vehicle_speed'],
              label='Vehicle Speed')
  
          for i in range(len(self.timesection)):
              axarr[1].plot(
                  self.timesection[i],
                  self.speedsection[i],
                  label='Speed Segment')
              axarr[1].plot(
                  self.timesection[i], self.accsection[i], label='IMU Segment')
  
          axarr[1].legend(fontsize='medium')
          axarr[1].grid(True)
          axarr[1].set_title('Speed')
  
          mng = plt.get_current_fig_manager()
          mng.full_screen_toggle()
  
          # plt.tight_layout(pad=0.20)
          fig.canvas.mpl_connect('key_press_event', self.press)
          plt.show()
function_tokens: def plot_result ( self ) : fig , axarr = plt . subplots ( 2 , 1 , sharex = True ) plt . tight_layout ( ) fig . subplots_adjust ( hspace = 0 ) axarr [ 0 ] . plot ( self . data [ 'time' ] , self . data [ 'ctlbrake' ] , label = 'Brake CMD' ) axarr [ 0 ] . plot ( self . data [ 'time' ] , self . data [ 'brake_percentage' ] , label = 'Brake Output' ) axarr [ 0 ] . plot ( self . data [ 'time' ] , self . data [ 'ctlthrottle' ] , label = 'Throttle CMD' ) axarr [ 0 ] . plot ( self . data [ 'time' ] , self . data [ 'throttle_percentage' ] , label = 'Throttle Output' ) axarr [ 0 ] . plot ( self . data [ 'time' ] , self . data [ 'engine_rpm' ] / 100 , label = 'Engine RPM' ) axarr [ 0 ] . legend ( fontsize = 'medium' ) axarr [ 0 ] . grid ( True ) axarr [ 0 ] . set_title ( 'Command' ) axarr [ 1 ] . plot ( self . data [ 'time' ] , self . data [ 'vehicle_speed' ] , label = 'Vehicle Speed' ) for i in range ( len ( self . timesection ) ) : axarr [ 1 ] . plot ( self . timesection [ i ] , self . speedsection [ i ] , label = 'Speed Segment' ) axarr [ 1 ] . plot ( self . timesection [ i ] , self . accsection [ i ] , label = 'IMU Segment' ) axarr [ 1 ] . legend ( fontsize = 'medium' ) axarr [ 1 ] . grid ( True ) axarr [ 1 ] . set_title ( 'Speed' ) mng = plt . get_current_fig_manager ( ) mng . full_screen_toggle ( ) # plt.tight_layout(pad=0.20) fig . canvas . mpl_connect ( 'key_press_event' , self . press ) plt . show ( )