Page MenuHomec4science

plot_density.py
No OneTemporary

File Metadata

Created
Sun, Nov 10, 09:47

plot_density.py

#!/usr/bin/env python
import Ptools as pt
from pNbody import *
nb = Nbody(sys.argv[1],ftype='gadget')
nb.cmcenter()
r = nb.rxyz()
pt.scatter(r,nb.rho,s=1)
pt.scatter(r,nb.rsp,color='red',s=1)
pt.show()

Event Timeline