post2d.plot: scaling of the arrows ?

Asked by Rioual


I use yade.post2d.plot() to represent graphically the velocity field of
 my particles in my set up as in

My question concerns the scaling of the length of the arrows on the figure:
How is it related to the numerical value of the velocity of the beads ?
is it eventually rescaled with respect to the maximum value ?
This is a big issue for me as i want to compare the velocity field diagrams for different
 configurations of my set up.

Thanks very much for your help,


Question information

English Edit question
Yade Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jérôme Duriez (jduriez) said :


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] for most recent YADE version

Can you help with this problem?

Provide an answer of your own, or ask Rioual for more information if necessary.

To post a message you must log in.