goPlotNewNode

PURPOSE ^

This script produces the figure 9b. It plot the number of new nodes versus

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 This script produces the figure 9b. It plot the number of new nodes versus
 propagation levels in C. Elegans neural network, small-world network, random
 network and Drosophila's CX network.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % This script produces the figure 9b. It plot the number of new nodes versus
0002 % propagation levels in C. Elegans neural network, small-world network, random
0003 % network and Drosophila's CX network.
0004 
0005 %   ---------
0006 %   Yen-Nan Lin, NTHU, 2010-2014, Matlab 2012a
0007 
0008 close all;
0009 
0010 % plot setting
0011 FIG_SIZE = [0 0 1200 600];
0012 lineWidth = 3;
0013 markerSize = 10;
0014 markerScale = 1.5;
0015 
0016 figure('name', 'nNewNode vs level', 'outerPosition', FIG_SIZE, 'color', 'w');
0017 hold on;
0018 % C. Elegans
0019 tmpNumNewNode = cellfun(@(x) mean(x(:)), ceNetwork.NumNewNodeMat);
0020 plot(0:7, tmpNumNewNode, 'lineWidth', lineWidth, 'marker', netMarker('CE'), ...
0021     'color', netColor('CE'), 'markerFace', netMarkerFace('CE'), ...
0022     'markerSize', markerSize);
0023 
0024 % Central complex
0025 tmpNumNewNode = cellfun(@(x) mean(x(:)), cxNetwork.NumNewNodeMat);
0026 plot(0:7, tmpNumNewNode, 'lineWidth', lineWidth, 'marker', netMarker('CX'), ...
0027     'color', netColor('CX'), 'markerFace', netMarkerFace('CX'), ...
0028     'markerSize', markerSize * markerScale);
0029 
0030 % Small-world network
0031 tmpNumNewNodeList = zeros(REPEAT_TIMES, MAX_LEVEL);
0032 for iNet = 1:REPEAT_TIMES
0033     tmpNumNewNodeList(iNet, :) = ...
0034         cellfun(@(x) mean(x(:)), smallRingNet{iNet}.NumNewNodeMat);
0035 end
0036 plot(0:7, mean(tmpNumNewNodeList, 1), 'lineWidth', lineWidth, ...
0037     'color', netColor('SW'), 'marker', netMarker('SW'), ...
0038     'markerFace', netMarkerFace('SW'), 'markerSize', markerSize);
0039 
0040 % Random network
0041 tmpNumNewNodeList = zeros(REPEAT_TIMES, MAX_LEVEL);
0042 for iNet = 1:REPEAT_TIMES
0043     tmpNumNewNodeList(iNet, :) = ...
0044         cellfun(@(x) mean(x(:)), randNetwork{iNet}.NumNewNodeMat);
0045 end
0046 plot(0:7, mean(tmpNumNewNodeList, 1), 'lineWidth', lineWidth, ...
0047     'color', netColor('ER'), 'marker', netMarker('ER'), ...
0048     'markerFace', netMarkerFace('ER'), 'markerSize', markerSize * markerScale);
0049 hold off;
0050 
0051 set(gca, 'FontName', 'Arial', 'FontSize', 18, 'lineWidth', 4, ...
0052     'FontWeight', 'bold');
0053 xlabel('Propagation level');
0054 ylabel('Number of new nodes');
0055 hL = legend('CE', 'CX', 'SW', 'ER', 'location', 'NorthEast');
0056 set(hL, 'box', 'off');
0057 box off;

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