def plot2(self): #print 'Currently performing: Side plot2' # plot velocity by angle y = np.nan_to_num(self.angle) x = np.nan_to_num(self.velocity) x = self.error_corr_v(x) # gaussian smooth velocity x_b = flt(x, sigma=5) x = x_b fig, ax = plt.subplots() ax.scatter(x,y) title = ax.set_title('Arch Plot') ax.set_xlabel('Velocity(cm/sec)') ax.set_ylabel('Arch Angle(radians)') return fig
def plot(self): #print 'Currently performing: Side plot' # plot velocity by angle x = np.nan_to_num(self.position) y = np.nan_to_num(self.velocity) x = self.error_corr(x) y = self.error_corr_v(y) # gaussian smooth velocity y_b = flt(y, sigma=5) y = y_b fig, ax = plt.subplots() ax.plot(x,y) ax.scatter(x,y) title = ax.set_title('Velocity Plot') ax.set_xlabel('Position(cm)') ax.set_ylabel('Velocity(cm/sec)') return fig