(self, traj_sample_lists, pol_sample_lists)
return xlim, ylim, zlim
Calculate the 3D axis limits shared between trajectory plots,
        based on the minimum and maximum xyz values across all samples.
Calculate the 3D axis limits shared between trajectory plots,
        based on the minimum and maximum xyz values across all samples.
Calculate the 3D axis limits shared between trajectory plots based on the minimum and maximum xyz values across all samples .
def _calculate_3d_axis_limits(self, traj_sample_lists, pol_sample_lists):
        """
        Calculate the 3D axis limits shared between trajectory plots,
        based on the minimum and maximum xyz values across all samples.
        """
        all_eept = np.empty((0, 3))
        sample_lists = traj_sample_lists
        if pol_sample_lists:
            sample_lists += pol_sample_lists
        for sample_list in sample_lists:
            for sample in sample_list.get_samples():
                ee_pt = sample.get(END_EFFECTOR_POINTS)
                for i in range(ee_pt.shape[1]/3):
                    ee_pt_i = ee_pt[:, 3*i+0:3*i+3]
                    all_eept = np.r_[all_eept, ee_pt_i]
        min_xyz = np.amin(all_eept, axis=0)
        max_xyz = np.amax(all_eept, axis=0)
        xlim = buffered_axis_limits(min_xyz[0], max_xyz[0], buffer_factor=1.25)
        ylim = buffered_axis_limits(min_xyz[1], max_xyz[1], buffer_factor=1.25)
        zlim = buffered_axis_limits(min_xyz[2], max_xyz[2], buffer_factor=1.25)
        return xlim, ylim, zlim
def _calculate_3d_axis_limits ( self , traj_sample_lists , pol_sample_lists ) : all_eept = np . empty ( ( 0 , 3 ) ) sample_lists = traj_sample_lists if pol_sample_lists : sample_lists += pol_sample_lists for sample_list in sample_lists : for sample in sample_list . get_samples ( ) : ee_pt = sample . get ( END_EFFECTOR_POINTS ) for i in range ( ee_pt . shape [ 1 ] / 3 ) : ee_pt_i = ee_pt [ : , 3 * i + 0 : 3 * i + 3 ] all_eept = np . r_ [ all_eept , ee_pt_i ] min_xyz = np . amin ( all_eept , axis = 0 ) max_xyz = np . amax ( all_eept , axis = 0 ) xlim = buffered_axis_limits ( min_xyz [ 0 ] , max_xyz [ 0 ] , buffer_factor = 1.25 ) ylim = buffered_axis_limits ( min_xyz [ 1 ] , max_xyz [ 1 ] , buffer_factor = 1.25 ) zlim = buffered_axis_limits ( min_xyz [ 2 ] , max_xyz [ 2 ] , buffer_factor = 1.25 ) return xlim , ylim , zlim