def circ_gen(self, reqrois=(), figure=None, suppress_extra_rois=False): #if figure is not None: figure.clf(keep_observers=True) if figure is not None: figure.clf() try: self.circ, self.node_angles = circle_plot.plot_connectivity_circle_cvu( np.reshape(self.ds.adjdat, (self.ds.nr_edges, )), self.ds.node_labels_numberless, indices=self.ds.edges.T, colormap=self.ds.opts.activation_map, fig=figure, n_lines=self.ds. nr_edges, #nr_edges is already bounded by soft_max node_colors=self.ds.node_colors, reqrois=reqrois, suppress_extra_rois=suppress_extra_rois, bilateral_symmetry=self.ds.opts.circ_bilateral_symmetry, #facecolor='white', textcolor='black' ) except CVUError as e: self.ds.error_dialog(str(e)) self.circ_data = self.circ.get_axes()[0].patches self.draw_nodes()
def empty_gen(self,figure=None): self.circ=circle_plot.plot_connectivity_circle_cvu( np.array(()), self.ds.node_labels_numberless, indices=np.array(((),())), colormap=self.ds.opts.activation_map.cmap, fig=figure, n_lines=None, node_colors=self.ds.node_colors, reqrois=(),)
def empty_gen(self, figure=None): self.circ, self.node_angles = circle_plot.plot_connectivity_circle_cvu( np.array(()), self.ds.node_labels_numberless, indices=np.array(((), ())), colormap=self.ds.opts.activation_map, fig=figure, n_lines=None, node_colors=self.ds.node_colors, reqrois=(), bilateral_symmetry=self.ds.opts.circ_bilateral_symmetry, #facecolor='white', textcolor='black' ) self.circ_data = self.circ.get_axes()[0].patches
def empty_gen(self,figure=None): self.circ, self.node_angles = circle_plot.plot_connectivity_circle_cvu( np.array(()), self.ds.node_labels_numberless, indices=np.array(((),())), colormap=self.ds.opts.activation_map, fig=figure, n_lines=None, node_colors=self.ds.node_colors, reqrois=(), bilateral_symmetry=self.ds.opts.circ_bilateral_symmetry, #facecolor='white', textcolor='black' ) self.circ_data=self.circ.get_axes()[0].patches
def circ_gen(self,reqrois=(),figure=None,suppress_extra_rois=False): #if figure is not None: figure.clf(keep_observers=True) if figure is not None: figure.clf() try: self.circ=circle_plot.plot_connectivity_circle_cvu( np.reshape(self.ds.adjdat,(self.ds.nr_edges,)), self.ds.node_labels_numberless, indices=self.ds.edges.T, colormap=self.ds.opts.activation_map.cmap, fig=figure, n_lines=self.ds.nr_edges, #nr_edges is already bounded by soft_max node_colors=self.ds.node_colors, reqrois=reqrois, suppress_extra_rois=suppress_extra_rois,) except cvu_utils.CVUError as e: self.ds.error_dialog(str(e)) self.circ_data=self.circ.get_axes()[0].patches self.draw_nodes()