0001
0002
0003
0004
0005
0006
0007
0008 close all;
0009
0010
0011 FIG_SIZE = [0 0 1200 600];
0012 lineWidth = 3;
0013 markerSize = 10;
0014 markerScale = 1.5;
0015
0016 figure('name', 'nPath vs level', 'outerPosition', FIG_SIZE, 'color', 'w');
0017 hold on;
0018
0019 tmpNPath = cellfun(@(x) mean(x(:)), ceNetwork.LevelMatrix);
0020 plot(0:7, tmpNPath, 'lineWidth', lineWidth, 'marker', netMarker('CE'), ...
0021 'color', netColor('CE'), 'markerFace', netMarkerFace('CE'), ...
0022 'markerSize', markerSize);
0023
0024
0025 tmpNPath = cellfun(@(x) mean(x(:)), cxNetwork.LevelMatrix);
0026 plot(0:7, tmpNPath, 'lineWidth', lineWidth, 'marker', netMarker('CX'), ...
0027 'color', netColor('CX'), 'markerFace', netMarkerFace('CX'), ...
0028 'markerSize', markerSize * markerScale);
0029
0030
0031 tmpNPathList = zeros(REPEAT_TIMES, MAX_LEVEL);
0032 for iNet = 1:REPEAT_TIMES
0033 tmpNPathList(iNet, :) = ...
0034 cellfun(@(x) mean(x(:)), smallRingNet{iNet}.LevelMatrix);
0035 end
0036 plot(0:7, mean(tmpNPathList, 1), 'lineWidth', lineWidth, ...
0037 'color', netColor('SW'), 'marker', netMarker('SW'), ...
0038 'markerFace', netMarkerFace('SW'), 'markerSize', markerSize);
0039
0040
0041 tmpNPathList = zeros(REPEAT_TIMES, MAX_LEVEL);
0042 for iNet = 1:REPEAT_TIMES
0043 tmpNPathList(iNet, :) = ...
0044 cellfun(@(x) mean(x(:)), randNetwork{iNet}.LevelMatrix);
0045 end
0046 plot(0:7, mean(tmpNPathList, 1), 'lineWidth', lineWidth, ...
0047 'color', netColor('ER'), 'marker', netMarker('ER'), ...
0048 'markerFace', netMarkerFace('ER'), 'markerSize', markerSize * markerScale);
0049 hold off;
0050
0051 set(gca, 'yScale', 'log', 'FontName', 'Arial', ...
0052 'FontSize', 18, 'lineWidth', 4, 'FontWeight', 'bold');
0053 xlabel('Propagation level');
0054 ylabel('Number of pathways');
0055 hL = legend('CE', 'CX', 'SW', 'ER', 'location', 'SouthEast');
0056 set(hL, 'box', 'off');
0057 box off;