Avoid overlapping of node labels in graph

8 vues (au cours des 30 derniers jours)
Kim Maria Damiani
Kim Maria Damiani le 22 Oct 2021
Is there a way to avoid overlapping of node labels in a graph, such as writing some labels diagonally / writing them in the blank space around the graph and connecting them to the corresponding node with arrows? Of course, assuming the graph has a reasonable number of nodes.

Réponses (1)

Walter Roberson
Walter Roberson le 22 Oct 2021
Not using the plot() call.
Changing the layout might help https://www.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.graphplot.layout.html but otherwise about all you can do is specify coordinates for each of your nodes in such a way that the labels do not happen to overlap.

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Produits


Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by