from
CoCoMac
by James Allen Download CoCoMac.org cortical connectivity data, model it as a network, and simulate epileptic sprea
fc_plotCircle(net, netLabels, circular_plot_axes)
function [circularPositions] = fc_plotCircle(net, netLabels, circular_plot_axes)
% Function to plot 'net' as a circular connectivity graph on
% circular_plot_axes (see gui) and print associated labels using
% 'netLabels'
%------------------------------------------
% Set the current axes to circular_plot_axes, clear the axes,
% display a 'please wait' message
axes(circular_plot_axes); % Set the axes to the network circular plot axes
cla; % Clear the network axes before we plot a new one
waiting_text = text(0.5,0.5, 'Please wait...', 'fontsize', 12, 'fontweight', 'bold', 'horizontalalignment', 'center');
set(gca, 'visible', 'on'); % Make sure the axes are visible (initially they are not)
drawnow;
%------------------------------------------
% Plot the graph and return positions of nodes on the circle
circularPositions = circulargraph2(net, netLabels, circular_plot_axes);
% Delete 'please wait' message
delete(waiting_text);
return;