(self, algorithm, agent,
                traj_sample_lists, pol_sample_lists)
Update 3D trajectory visualizations information: the trajectory samples,
        policy samples, and linear Gaussian controller means and covariances.
Update 3D trajectory visualizations information: the trajectory samples,
        policy samples, and linear Gaussian controller means and covariances.
Update 3D trajectory visualizations information : the trajectory samples policy samples and linear Gaussian controller means and covariances .
def _update_trajectory_visualizations(self, algorithm, agent,
                traj_sample_lists, pol_sample_lists):
        """
        Update 3D trajectory visualizations information: the trajectory samples,
        policy samples, and linear Gaussian controller means and covariances.
        """
        xlim, ylim, zlim = self._calculate_3d_axis_limits(traj_sample_lists, pol_sample_lists)
        for m in range(algorithm.M):
            self._traj_visualizer.clear(m)
            self._traj_visualizer.set_lim(i=m, xlim=xlim, ylim=ylim, zlim=zlim)
            if algorithm._hyperparams['fit_dynamics']:
                self._update_linear_gaussian_controller_plots(algorithm, agent, m)                                
            self._update_samples_plots(traj_sample_lists, m, 'green', 'Trajectory Samples')
            if pol_sample_lists:
                self._update_samples_plots(pol_sample_lists,  m, 'blue',  'Policy Samples')
        self._traj_visualizer.draw()
def _update_trajectory_visualizations ( self , algorithm , agent , traj_sample_lists , pol_sample_lists ) : xlim , ylim , zlim = self . _calculate_3d_axis_limits ( traj_sample_lists , pol_sample_lists ) for m in range ( algorithm . M ) : self . _traj_visualizer . clear ( m ) self . _traj_visualizer . set_lim ( i = m , xlim = xlim , ylim = ylim , zlim = zlim ) if algorithm . _hyperparams [ 'fit_dynamics' ] : self . _update_linear_gaussian_controller_plots ( algorithm , agent , m ) self . _update_samples_plots ( traj_sample_lists , m , 'green' , 'Trajectory Samples' ) if pol_sample_lists : self . _update_samples_plots ( pol_sample_lists , m , 'blue' , 'Policy Samples' ) self . _traj_visualizer . draw ( )