def update_plot(self): xbeta = self.beta * cvtfactor xdelta = self.delta * cvtfactor xtheta = self.theta_1 * cvtfactor self.a1, self.a2 = input_stage.amplitudes( xbeta, xdelta, xtheta ) x, y, z = calc(self.a1, self.a2, theta=self.theta, phi=self.phi) self.plot.mlab_source.set(x=x, y=y, z=z) return
def activate_trajectory_scene(self): self.scene.mlab.axes(self.pt_source, x_axis_visibility=False, y_axis_visibility=False, z_axis_visibility=False) # self.scene.mlab.orientation_axes(xlabel='S1',ylabel='S2',zlabel='S3') xbeta = self.beta * cvtfactor xdelta = self.delta * cvtfactor xtheta = self.theta_1 * cvtfactor self.a1, self.a2 = input_stage.amplitudes( xbeta, xdelta, xtheta ) x,y,z = calc(self.a1, self.a2, theta=self.theta, phi=self.phi) self.plot = self.scene.mlab.plot3d(x, y, z, tube_radius=None, color=poincare.orange) poincare.plot_grid(Xmlab=self.scene.mlab) poincare.land_marks(Xmlab=self.scene.mlab, figure=self.scene.mayavi_scene) self.scene.mlab.view( azimuth=45, elevation=54, distance=5.5 ) # self.scene.reset_zoom() return