← Back to team overview

yade-users team mailing list archive

Re: [Question #701745]: post2d.plot: scaling of the arrows ?

 

Question #701745 on Yade changed:
https://answers.launchpad.net/yade/+question/701745

    Status: Open => Answered

Jérôme Duriez proposed the following answer:
Hi,

>From the source code [1], the behavior seems to be the one of [2] (?
hoping I did not step into a trap of different Python modules). There
seems indeed to be an automatic modification of the length which could
trouble you. Behavior could be different though, try maybe to pass
additional arguments e.g.

post2d.plot([...], scale = aConstantValueThatSuitsYou)

 
[1] https://gitlab.com/yade-dev/trunk/-/blob/master/py/post2d.py#L301 for most recent YADE version
[2] https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.quiver.html

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.