Is there a tool to create legends for directed/undirected graphs?
Show older comments
I've been playing with the directed graphing abilities and finding it to work very well. I am able to create some neat graphs that contain a lot of information packed in for visual communication in particular - setting node colors, edge color, etc. I'm finding that I'm not able to create a legend for this sort of work and have been slowly building one in a clunky way via a separate plot. Is there a utility for doing this sort of thing that I missed in the documentation?
Accepted Answer
More Answers (1)
Michael Moore
on 24 Jan 2020
0 votes
I am using digraphs to for my network algorithms. I am using the plot command intended for graphs and digraphs (use help digraph/plot for more info), which is different than the plot command for normal fugures. The legend function does not seem to wirk as usual when applied to digraph plots.
However, in nevertheless using the normal legend command on my digraph plots, I get an interesting result. The result is a picture of a small network with 4 nodes, and whatever strings I have tried to use as labels concantenated together. With a little more fudging, I could probably get what I really want.
Categories
Find more on Legend in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!