Friday 15 May 2015

matlab - How to show label of an Edge within a BioGraph -


I'm trying to draw a Biograph in Matlab. I would like to show the label's name and each edge nodes I set the label of a particular edge and set the option biography show label edges, although it is still not showing them. What am I missing? Is there a way to set the names of edges through the list? Or do you have to do them one by one?

Thank you

Here is the code:

  cm = sparse ([0 1 1 0 0 1 0 0 1 1 1 0 0 0 0; 0 0 0 1; 1 0 0 0 0]); Name = {'E1', 'E2', 'E3', 'E4', 'E5'}; BG = Biology (cm, name, 'layout type', 'radial', 'showtext in nodes', 'label'); Bg.nodes (1). Shape = 'circle'; Bg.nodes (1). Size = [2 2]; Bg.nodes (1) .color = [.5.77]; Bg.edges (1) .LineColor = [. 5.77]; Bg.edges (1). Label = 'labelzz'; Bg.edges (1). Description = 'description'; Mill (bg); Mill (bg.edges (1)); GOBZ = View (BG);   

And this is the result:

  5 nodes and object life with 9 edges. ID: '' label: 'on' statement: '' LayoutType: 'radial' LayoutScale: 1 scale: 1 NodeAutoSize '' ShowTextInNodes: 'Label' EdgeType: 'Curved' EdgeTextColor [0 0] ShowArrows: '' ArrowSize : 8 ShowWeights: 'Close' EdgeFontSize: 8 NodeCallbacks: [CustomNodeDrawFcn: @ (inspection nodes) (nodes) EdgeCallbacks: Observe @ (edge) (edge)] nodes [5x1 biograph.node] edges: [9x1 biograph.edge ] ID: 'E1 - & gt; E2 'label:' labelzz 'Description:' Descriptionzz 'Weight: 1 linewidth: 0.5000 LineColor: [0.5000 0.7000 1] UserData: []   

Graph of image:  Actiteepi://ikstakkingurkcom/n34Rtkpang

As an age label or id can not be displayed. Only loads of edge can show biological property show ShowWeights on 'On'.

No comments:

Post a Comment