1515
1616 methods
1717 function obj = Base(size , prob_max )
18- import nla .* % required due to matlab package system quirks
18+ import nla .TriMatrix
19+
1920 if nargin ~= 0
2021 obj.coeff = TriMatrix(size );
2122 obj.prob = TriMatrix(size );
2526 end
2627
2728 function output(obj , net_atlas , flags , prob_label )
28- import nla .* % required due to matlab package system quirks
2929
3030 coeff_label = sprintf(' Edge-level %s ' , obj .coeff_name);
3131 prob_label_appended = ' ' ;
@@ -34,8 +34,8 @@ function output(obj, net_atlas, flags, prob_label)
3434 prob_label_appended = sprintf(' (%s )' , obj .behavior_name);
3535 end
3636
37- fig = gfx .createFigure();
38- matrix_plot = gfx .plots.MatrixPlot(fig , coeff_label , obj .coeff, net_atlas .nets, gfx .FigSize.LARGE, ' lower_limit' , obj .coeff_range(1 ),...
37+ fig = nla . gfx.createFigure();
38+ matrix_plot = nla . gfx.plots.MatrixPlot(fig , coeff_label , obj .coeff, net_atlas .nets, nla . gfx.FigSize.LARGE, ' lower_limit' , obj .coeff_range(1 ),...
3939 ' upper_limit' , obj .coeff_range(2 ));
4040 matrix_plot .displayImage();
4141 w = matrix_plot .image_dimensions(" image_width" );
@@ -45,7 +45,7 @@ function output(obj, net_atlas, flags, prob_label)
4545 if ~exist(' prob_label' , ' var' )
4646 prob_label = [sprintf(' Edge-level Significance (P < %g )' , obj .prob_max), prob_label_appended ];
4747 end
48- matrix_plot2 = gfx .plots.MatrixPlot(fig , prob_label , obj .prob_sig, net_atlas .nets, gfx .FigSize.LARGE,...
48+ matrix_plot2 = nla . gfx.plots.MatrixPlot(fig , prob_label , obj .prob_sig, net_atlas .nets, nla . gfx.FigSize.LARGE,...
4949 ' draw_legend' , false , ' draw_colorbar' , false , ' color_map' , [[1 ,1 ,1 ];[0 ,0 ,0 ]], ' x_position' , w , ' lower_limit' , 0 , ' upper_limit' , 1 );
5050 w2 = matrix_plot2 .image_dimensions(" image_width" );
5151 h2 = matrix_plot2 .image_dimensions(" image_height" );
@@ -58,7 +58,7 @@ function output(obj, net_atlas, flags, prob_label)
5858 % prob_log.v = -1 * log10(obj.prob.v);
5959 cm_base = parula(1000 );
6060 cm = flip(cm_base(ceil(logspace(-3 , 0 , 256 ) .* 1000 ), : ));
61- matrix_plot2 = gfx .plots.MatrixPlot(fig , prob_label , obj .prob, net_atlas .nets, gfx .FigSize.LARGE,...
61+ matrix_plot2 = nla . gfx.plots.MatrixPlot(fig , prob_label , obj .prob, net_atlas .nets, nla . gfx.FigSize.LARGE,...
6262 ' draw_legend' , false , ' color_map' , cm , ' x_position' , w , ' lower_limit' , 0 , ' upper_limit' , 1 );
6363 w2 = matrix_plot2 .image_dimensions(" image_width" );
6464 h2 = matrix_plot2 .image_dimensions(" image_height" );
0 commit comments