goPlotRecur

PURPOSE ^

This script create the figure 9a. It plot the channel connectivity matrixes

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 This script create the figure 9a. It plot the channel connectivity matrixes
 and number of new nodes of C. Elegans and random networks in level 1, 3, 5, 7.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % This script create the figure 9a. It plot the channel connectivity matrixes
0002 % and number of new nodes of C. Elegans and random networks in level 1, 3, 5, 7.
0003 
0004 %   ---------
0005 %   Yen-Nan Lin, NTHU, 2010-2014, Matlab 2012a
0006 
0007 close all;
0008 
0009 NUM_FIG_ROW = 4;
0010 NUM_FIG_COL = 4;
0011 FIG_SIZE = [0, 0, 1200, 630];
0012 NUM_PLOT_LEVEL = 4;
0013 REDUCE_COLORBAR_WIDTH = 0.01;
0014 PLOT_LEVELS = [2, 4, 6, 8];
0015 
0016 % setting of figure
0017 figure('outerPosition', FIG_SIZE, 'color', 'w');
0018 panelObj = panel();
0019 panelObj.pack('h', [1/12, -1]);
0020 panelObj(1).pack(2);
0021 panelObj(2).pack(NUM_FIG_ROW, NUM_FIG_COL);
0022 panelObj.fontsize = 15;
0023 panelObj.fontname = 'Arial';
0024 panelObj.fontweight = 'bold';
0025 panelObj.margin = [3 15 3 8];
0026 panelObj.de.margin = 3;
0027 panelObj(1, 2).margin = [3, 3, 3, 10];
0028 panelObj(2, 2).margin = [3, 5, 3, 3];
0029 panelObj(2, 3).margin = [3, 3, 3, 5];
0030 panelObj(2).xlabel('Output nodes');
0031 
0032 % Random network
0033 panelObj(1, 1).select();
0034 title('Random');
0035 axis off;
0036 % channel connectivity matrix
0037 for iLevel = 1:NUM_PLOT_LEVEL
0038     panelObj(2, 1, iLevel).select();
0039     plotOpt.showXTick = false;
0040     if iLevel == 1
0041         plotOpt.showYTick = true;
0042     else
0043         plotOpt.showYTick = false;
0044     end
0045     plotLv = PLOT_LEVELS(iLevel);
0046     myImagesc(randNetwork{1}.ChConnectMat{plotLv}, plotOpt);
0047     title(['Level ', int2str(plotLv - 1)]);
0048 end
0049 panelObj(2, 1).ylabel(sprintf('Channel\nconnectivity'));
0050 % number of new nodes
0051 for iLevel = 1:NUM_PLOT_LEVEL
0052     panelObj(2, 2, iLevel).select();
0053     plotOpt.showXTick = false;
0054     if iLevel == 1
0055         plotOpt.showYTick = true;
0056         ylabel('Input nodes');
0057     else
0058         plotOpt.showYTick = false;
0059     end
0060     plotLv = PLOT_LEVELS(iLevel);
0061     myImagesc(randNetwork{1}.NumNewNodeMat{plotLv}, plotOpt);
0062 end
0063 panelObj(2, 2).ylabel(sprintf('New\nnodes'));
0064 
0065 % C. Elegans
0066 panelObj(1, 2).select();
0067 title('C. Elegans');
0068 axis off;
0069 % channel connectivity matrix
0070 for iLevel = 1:NUM_PLOT_LEVEL
0071     panelObj(2, 3, iLevel).select();
0072     plotOpt.showXTick = false;
0073     if iLevel == 1
0074         plotOpt.showYTick = true;
0075     else
0076         plotOpt.showYTick = false;
0077     end
0078     plotLv = PLOT_LEVELS(iLevel);
0079     myImagesc(ceNetwork.ChConnectMat{plotLv}, plotOpt);
0080 end
0081 panelObj(2, 3).ylabel(sprintf('Channel\nconnectivity'));
0082 % number of new nodes
0083 for iLevel = 1:NUM_PLOT_LEVEL
0084     panelObj(2, 4, iLevel).select();
0085     plotOpt.showXTick = false;
0086     if iLevel == 1
0087         plotOpt.showYTick = true;
0088         ylabel('Input nodes');
0089     else
0090         plotOpt.showYTick = false;
0091     end
0092     plotLv = PLOT_LEVELS(iLevel);
0093     myImagesc(ceNetwork.NumNewNodeMat{plotLv}, plotOpt);
0094 end
0095 panelObj(2, 4).ylabel(sprintf('New\nnodes'));

Generated on Thu 30-Jan-2014 00:00:07 by m2html © 2005