def plot_projected_dic(self, nb_modes=3, to_highlight=1):
        self.model.pca.plot_projected_dic(nb_modes=nb_modes, target_coord=self.coord_projected_target, target_levels=[t_slice.level for t_slice in self.target]) if self.coord_projected_target is not None \
            else self.model.pca.plot_projected_dic(nb_modes=nb_modes)

        if to_highlight == 'all':
            for i in range(len(self.target)):
                self.model.pca.plot_projected_dic(nb_modes=nb_modes, target_coord=self.coord_projected_target, target_levels=[t_slice.level for t_slice in self.target], to_highlight=(i, self.selected_k_slices[i]))
        else:
            self.model.pca.plot_projected_dic(nb_modes=nb_modes, target_coord=self.coord_projected_target, target_levels=[t_slice.level for t_slice in self.target], to_highlight=(to_highlight, self.selected_k_slices[to_highlight])) if self.coord_projected_target is not None \
            else self.model.pca.plot_projected_dic()

    # ------------------------------------------------------------------------------------------------------------------
plot the pca first modes and the target projection if target is provided.
dataset/ETHPy150Open neuropoly/spinalcordtoolbox/dev/sct_segment_gray_matter_asman/2015-08-17-full_scripts_before_cleaning/sct_asman.py/TargetSegmentationPairwise.plot_projected_dic