Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106394149
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
Tue, Mar 25, 10:11
Size
583 B
Mime Type
text/x-python
Expires
Thu, Mar 27, 10:11 (2 d)
Engine
blob
Format
Raw Data
Handle
25137137
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