plotLabels Plots labels on the pathway map. handle handle to the figure on which to print the labels pathway pathway structure of the metabolic network NOTE: Since there is not dedicated shape for labels the PHENOTYPE shape is used. The name of the PHENOTYPE object is used. Usage: plotLabels(handle,pathway)
0001 function plotLabels(handle,pathway) 0002 % plotLabels 0003 % Plots labels on the pathway map. 0004 % 0005 % handle handle to the figure on which to print the labels 0006 % pathway pathway structure of the metabolic network 0007 % 0008 % NOTE: Since there is not dedicated shape for labels the PHENOTYPE 0009 % shape is used. The name of the PHENOTYPE object is used. 0010 % 0011 % Usage: plotLabels(handle,pathway) 0012 0013 for i=1:numel(pathway.listOfSpecies) 0014 if strcmp(pathway.listOfSpecies(i).type,'PHENOTYPE') 0015 handle=text(pathway.listOfSpecies(i).x+pathway.listOfSpecies(i).w/2, pathway.listOfSpecies(i).y,... 0016 pathway.listOfSpecies(i).name,'fontname','Small Fonts','fontsize',4,... 0017 'interpreter', 'tex','HorizontalAlignment','center','verticalalignment','middle'); 0018 end 0019 end 0020 end