Changes

Jump to navigation Jump to search

Matplotlib disp spin.out

30 bytes removed, 15:25, 13 March 2014
== Code ==
<source lang="python">
import os
import sys
import numpy as np
infile = sys.argv[1]
filename , fileext = os.path.splitext(infile)
print("Input file is: %s"%infile)
plt.grid(True)
plt.title("%s as function of %s"%(fileindex[3], fileindex[2]))
plt.savefig("matplotlib_%s.png"%filename)
 
plt.show()
</source>
 
To run
<source lang="bash">
python -i testmatplotlib.py disp_13_N.out
python -i testmatplotlib.py disp_theta_13_N.out
</source>
== See also ==
[[Category:Matplotlib]]
Trusted, Bureaucrats
1,382

edits

Navigation menu