How to control graph layout
    6 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Nora Khaled
      
 il 17 Lug 2019
  
    
    
    
    
    Risposto: Steven Lord
    
      
 il 17 Lug 2019
            I want to know if there is a way to change the layout of the graph to represent what I want. 
for now I connection of the nodes are correct but the node placment are not. 
I wish to get some thing like this : (where the nodes are ordered from left to right and top to bottom)

what I get is the following: 

0 Commenti
Risposta accettata
  Steven Lord
    
      
 il 17 Lug 2019
        I don't believe any of the methods available in the layout function for graph and digraph objects will give you that exact configuration. When you plot the graph or digraph object, you can explicitly specify the X, Y, and (if desired) Z coordinates of the nodes. See the "Custom Graph Node Coordinates" example on the plot documentation page I linked above or this post on Loren's blog which uses the centroid of each US state as the coordinate of its node in the plot of the US.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Graph and Network Algorithms in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

