Display methods

class pNbody._display_mixin._NbodyDisplayMixin

Bases: object

Provide display functions for N-body simulation particles.

CombiMap(*arg, **kw)

Return an image in form of a matrix (nx x ny float array). Contrary to ComputeMap, CombiMap compose different output of ComputeMap.

pos : position of particles (moment 0)

sr : dispertion in r (with respect to xp) svr : dispertion in vr

vxyr : mean velocity in the plane svxyr: dispertion in vxy

vtr : mean tangential velocity in the plane svtr : dispertion in vt

szr : ratio sigma z/sigma r

ComputeMap(*arg, **kw)

Return an image in form of a matrix (nx x ny float array)

obs : position of observer x0 : eye position xp : focal position alpha : angle of the head view : ‘xy’ ‘xz’ ‘yz’

eye : ‘right’ ‘left’ dist_eye : distance between eyes

mode : mode of map space : pos or vel

persp : ‘on’ ‘off’ clip : (near,far) size : (maxx,maxy)

cut : ‘yes’ ‘no’

frsp : factor for rsp shape : shape of the map

ComputeMeanMap(*arg, **kw)

Compute the mean map of an observable.

ComputeObjectMap(*arg, **kw)
      • IN DEVELOPPEMENT : allow to draw an object like a box, a grid… * * *

Return an image in form of a matrix (nx x ny float array)

obs : position of observer x0 : eye position xp : focal position alpha : angle of the head view : ‘xy’ ‘xz’ ‘yz’

eye : ‘right’ ‘left’ dist_eye : distance between eyes

mode : mode of map space : pos or vel

persp : ‘on’ ‘off’ clip : (near,far) size : (maxx,maxy)

cut : ‘yes’ ‘no’

frsp : factor for rsp shape : shape of the map

ComputeSigmaMap(*arg, **kw)

Compute the sigma map of an observable.

Map(*arg, **kw)

Return 2 final images (float and int)

display(*arg, **kw)

Display the model

expose(obs, eye=None, dist_eye=None, foc=None, space='pos', pos=None, vel=None)

Rotate and translate the object in order to be seen as if the observer was in x0, looking at a point in xp.

obs : observer matrix eye : ‘right’ or ‘left’ dist_eye : distance between eyes (separation = angle) space : pos or vel foc : focal

show(*arg, **kw)

Display the model this is an alias to display