2 bugs in draw digraph
Ältere Kommentare anzeigen
2 bugs in draw digraph
In
It is said we could set ArrowPosition — Position of arrow along edge and ArrowSize — Arrow size to vector of positive values.
However, I can't. For example:
a=[0,2,3;0,0,0;0,0,0];
G=digraph(a);
plot(G,'ArrowPosition',1,'ArrowSize',[2,3]')
How could I change the ArrowPosition?
And how could I set ArrowSize to a vector? Please help me.
1 Kommentar
Tiger Zhao
am 8 Jan. 2019
Antworten (1)
Steven Lord
am 8 Jan. 2019
1 Stimme
The documentation for the ArrowSize property in the online documentation (which is for the most recent release, currently release R2018b) says that ArrowSize can be a vector but the documentation for that property in release R2018a says it is a scalar. I checked in both those releases and R2018a does limit it to being a scalar while R2018b allows it to be a vector.
So neither of these are bugs. The online documentation, which is for a newer release than you're using, describes functionality introduced in that newer release.
Kategorien
Mehr zu Graph and Network Algorithms finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!