Why I can not access any property of FontSize for each nodes in Matlab digraph?
h=figure;G=digraph(pass_graph);p=plot(G,'Layout','circle','EdgeLabel',G.Edges.Weight);p.NodeColor = 'red';G.Edges.LWidths = 18*G.Edges.Weight/max(G.Edges.Weight);p.LineWidth = G.Edges.LWidths;
None of the conventional methods I know are working, such as :
fig=gcf;set(findall(fig,'-property','FontSize'),'FontSize',22)
Or
p=plot(G,'Layout','circle','FontSize',22,'EdgeLabel',G.Edges.Weight);
As a matter of a fact, I don;t see any property for that:
Error using digraph/plot>checkinputnames (line 126)Expected input number 4 to match one of these strings:'ArrowSize', 'BusyAction', 'ButtonDownFcn', 'CreateFcn', 'DeleteFcn', 'DisplayName', 'EdgeAlpha', 'EdgeCData','EdgeColor', 'EdgeLabel', 'EdgeLabelMode', 'HandleVisibility', 'HitTest', 'Interruptible', 'LineStyle','LineWidth', 'Marker', 'MarkerSize', 'NodeCData', 'NodeColor', 'NodeLabel', 'NodeLabelMode', 'Parent','PickableParts', 'Selected', 'SelectionHighlight', 'ShowArrows', 'Tag', 'UIContextMenu', 'UserData', 'Visible','XData', 'YData', 'Layout', 'Dimension', 'Iterations', 'XStart', 'YStart', 'Direction', 'Sources', 'Sinks','AssignLayers'The input, 'FontSize', did not match any of the valid strings.Error in digraph/plot (line 80)args = checkinputnames(args,nameOffset);
Best Answer