goPlotSummary

PURPOSE ^

This script produces the figure 5c. It plot the vertical propagation versus

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 This script produces the figure 5c. It plot the vertical propagation versus
 horizontal propagation of C. Elegans neural network, small-world network,
 random network, regular network and Drosophila's CX network in level 2.
 The errorbar is standard deviation.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % This script produces the figure 5c. It plot the vertical propagation versus
0002 % horizontal propagation of C. Elegans neural network, small-world network,
0003 % random network, regular network and Drosophila's CX network in level 2.
0004 % The errorbar is standard deviation.
0005 
0006 %   ---------
0007 %   Yen-Nan Lin, NTHU, 2010-2014, Matlab 2012a
0008 
0009 close all;
0010 
0011 % plot setting
0012 xErrBarWidth = 0.015;
0013 yErrBarWidth = 0.015;
0014 textSize = 16;
0015 lineWidth = 3;
0016 markerSize = 10;
0017 markerScale = 1.5;
0018 
0019 FIG_SIZE = [0 0 600 650];
0020 figure('name', 'summary', 'outerPosition', FIG_SIZE, 'color', 'w');
0021 
0022 % plot marker of CE, ER, RL, SW and CX networks
0023 hold on;
0024 plot(ceNetwork.HorzProp(3), ceNetwork.VertProp(3), ...
0025     'Marker', netMarker('CE'), 'Color', netColor('CE'), ...
0026     'MarkerFaceColor', netMarkerFace('CE'), ...
0027     'MarkerSize', markerSize, 'LineWidth', lineWidth);
0028 plot(meanRandNet.HorzProp(3), meanRandNet.VertProp(3), ...
0029     'Marker', netMarker('ER'), 'Color', netColor('ER'), ...
0030     'MarkerFaceColor', netMarkerFace('ER'), ...
0031     'MarkerSize', markerSize * markerScale, 'LineWidth', lineWidth);
0032 plot(meanRegularNet.HorzProp(3), meanRegularNet.VertProp(3), ...
0033     'Marker', netMarker('RL'), 'Color', netColor('RL'), ...
0034     'MarkerFaceColor', netMarkerFace('RL'), ...
0035     'MarkerSize', markerSize, 'LineWidth', lineWidth);
0036 plot(meanRingNet.HorzProp(3), meanRingNet.VertProp(3), ...
0037     'Marker', netMarker('SW'), 'Color', netColor('SW'), ...
0038     'MarkerFaceColor', netMarkerFace('SW'), ...
0039     'MarkerSize', markerSize, 'LineWidth', lineWidth);
0040 plot(cxNetwork.HorzProp(3), cxNetwork.VertProp(3), ...
0041     'Marker', netMarker('CX'), 'Color', netColor('CX'), ...
0042     'MarkerFaceColor', netMarkerFace('CX'), ...
0043     'MarkerSize', markerSize * markerScale, 'LineWidth', lineWidth);
0044 set(gca, 'FontSize', 18, 'lineWidth', 4, 'FontWeight', 'bold');
0045 xlabel('Horizontal propagation');
0046 ylabel('Vertical propagation');
0047 box off;
0048 
0049 % plot marker and errorbar of small-world networks with rewiring probability
0050 % from 0.01 to 0.5 (defined in goAnalysis.m 'REWIRE')
0051 hold on;
0052 for iNet = 1:numel(meanSmallNet)
0053     plot(meanSmallNet{iNet}.HorzProp(3), meanSmallNet{iNet}.VertProp(3), ...
0054         'Marker', netMarker('SW'), 'Color', netColor('SW'), ...
0055         'MarkerFaceColor', netMarkerFace('SW'), 'MarkerSize', markerSize - 4);
0056 
0057     hErr = ploterr(meanSmallNet{iNet}.HorzProp(3), ...
0058         meanSmallNet{iNet}.VertProp(3), ...
0059         stdSmallNet{iNet}.HorzProp(3), ...
0060         stdSmallNet{iNet}.VertProp(3), ...
0061         'abshhx', xErrBarWidth, 'abshhy', yErrBarWidth);
0062     set(hErr, 'lineWidth', 2, 'Color', netColor('SW'));
0063 end
0064 hold off;
0065 
0066 % plot errorbar of ER, RL and SW networks
0067 hold on;
0068 tmpHorz = cellfun(@(x) x.HorzProp(3), randNetwork);
0069 tmpVert = cellfun(@(x) x.VertProp(3), randNetwork);
0070 hErr = ploterr(mean(tmpHorz), mean(tmpVert), std(tmpHorz), std(tmpVert), ...
0071     'abshhx', xErrBarWidth, 'abshhy', yErrBarWidth);
0072 set(hErr, 'lineWidth', 2, 'Color', netColor('ER'));
0073 
0074 tmpHorz = cellfun(@(x) x.HorzProp(3), regularRingNet);
0075 tmpVert = cellfun(@(x) x.VertProp(3), regularRingNet);
0076 hErr = ploterr(mean(tmpHorz), mean(tmpVert), std(tmpHorz), std(tmpVert), ...
0077     'abshhx', xErrBarWidth, 'abshhy', yErrBarWidth);
0078 set(hErr, 'lineWidth', 2, 'Color', netColor('RL'));
0079 
0080 tmpHorz = cellfun(@(x) x.HorzProp(3), smallRingNet);
0081 tmpVert = cellfun(@(x) x.VertProp(3), smallRingNet);
0082 hErr = ploterr(mean(tmpHorz), mean(tmpVert), std(tmpHorz), std(tmpVert), ...
0083     'abshhx', xErrBarWidth, 'abshhy', yErrBarWidth);
0084 set(hErr, 'lineWidth', 2, 'Color', netColor('SW'));
0085 hold off;
0086 
0087 % annotation
0088 text(double(ceNetwork.HorzProp(3)), double(ceNetwork.VertProp(3)), ...
0089     '   CE', 'FontSize', textSize, 'FontWeight', 'bold');
0090 text(double(meanRandNet.HorzProp(3)), double(meanRandNet.VertProp(3)), ...
0091     '   ER', 'FontSize', textSize, 'FontWeight', 'bold');
0092 text(double(meanRegularNet.HorzProp(3)), double(meanRegularNet.VertProp(3)), ...
0093     '   RL', 'FontSize', textSize, 'FontWeight', 'bold');
0094 text(double(meanRingNet.HorzProp(3)), double(meanRingNet.VertProp(3)), ...
0095     '   SW', 'FontSize', textSize, 'FontWeight', 'bold');
0096 text(double(cxNetwork.HorzProp(3)), double(cxNetwork.VertProp(3)), ...
0097     '   CX', 'FontSize', textSize, 'FontWeight', 'bold');
0098 text(double(meanRingNet.HorzProp(3)), double(meanRingNet.VertProp(3)), ...
0099     '0.3\rightarrow   ', 'FontSize', textSize - 4, 'FontWeight', 'bold', ...
0100     'HorizontalAlignment', 'right');
0101 text(double(meanSmallNet{3}.HorzProp(3)), double(meanSmallNet{3}.VertProp(3)), ...
0102     '0.05\rightarrow   ', 'FontSize', textSize - 4, 'FontWeight', 'bold', ...
0103     'HorizontalAlignment', 'right');
0104 text(double(meanSmallNet{8}.HorzProp(3)), double(meanSmallNet{8}.VertProp(3)), ...
0105     '0.5\rightarrow   ', 'FontSize', textSize - 4, 'FontWeight', 'bold', ...
0106     'HorizontalAlignment', 'right');
0107 
0108 breakYaxis(2);
0109 set(gca, 'xtick', 0:0.2:1);

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