Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F77995401
plot.py.svn-base
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Aug 17, 17:57
Size
583 B
Mime Type
text/x-python
Expires
Mon, Aug 19, 17:57 (2 d)
Engine
blob
Format
Raw Data
Handle
19959283
Attached To
rGEAR Gear
plot.py.svn-base
View Options
#!/usr/bin/env python
import Ptools as pt
M,Fe,Mg,Ox,Me = pt.io.read_ascii('MetalEjection.dat',[0,1,2,3,4],skipheader=True)
M1,Res,Hco = pt.io.read_ascii('HeliumCore.dat',[0,1,2],skipheader=True)
print Ox
Fe = Fe/M
Mg = Mg/M
Ox = Ox/M
Me = Me/M
Res = Res/M1
Hco = Hco/M1
pt.plot(M,Fe,'y')
pt.plot(M,Mg,'b')
pt.plot(M,Ox,'g')
pt.plot(M,Me,'c')
pt.plot(M1,Res,'k')
pt.plot(M1,Hco,'r')
pt.plot(M,Fe,'yo')
pt.plot(M,Mg,'bo')
pt.plot(M,Ox,'go')
pt.plot(M,Me,'co')
pt.plot(M1,Res,'ko')
pt.plot(M1,Hco,'ro')
pt.semilogx()
pt.semilogy()
pt.axis([1e0,1e2,1e-4,1e0])
pt.show()
Event Timeline
Log In to Comment