← Back to team overview

yade-users team mailing list archive

[Question #652267]: How to reverse the direction of an axis in the plot?

 

New question #652267 on Yade:
https://answers.launchpad.net/yade/+question/652267

Considering the plot of PIDController.py (trunk/examples/PIDController.py),

o.engines = [
    '''Other Engines'''
    PyRunner(command='addPlotData()',iterPeriod=1000,label='graph'),
]

def addPlotData():
    fMove = Vector3(0,0,0)
    for i in bodyID:
        fMove += O.forces.f(i)
    plot.addData(z=O.iter, pMove=fMove[2], pFest[2])

plot.plots={'z':('pMove','pFest')}
plot.plot()

I want to reverse the direction of pMove, pFest axis. How to do that?

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