Home > RAVEN > plotLabels.m

plotLabels

PURPOSE ^

plotLabels

SYNOPSIS ^

function plotLabels(handle,pathway)

DESCRIPTION ^

 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)

   Rasmus Agren, 2010-12-16

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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 %   Rasmus Agren, 2010-12-16
0014 %
0015 
0016 for i=1:numel(pathway.listOfSpecies)
0017    if strcmp(pathway.listOfSpecies(i).type,'PHENOTYPE')
0018        handle=text(pathway.listOfSpecies(i).x+pathway.listOfSpecies(i).w/2, pathway.listOfSpecies(i).y,...
0019             pathway.listOfSpecies(i).name,'fontname','Small Fonts','fontsize',4,...
0020             'interpreter', 'tex','HorizontalAlignment','center','verticalalignment','middle');
0021    end
0022 end
0023 end

Generated on Tue 16-Jul-2013 21:50:02 by m2html © 2005