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.

Respuestas (1)

Steven Lord
Steven Lord el 8 de En. de 2019

1 voto

The ArrowPosition property was introduced in release R2018b according to the Release Notes.
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.

Categorías

Más información sobre Graph and Network Algorithms en Centro de ayuda y File Exchange.

Productos

Versión

R2018a

Preguntada:

el 8 de En. de 2019

Respondida:

el 8 de En. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by