This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
plotting [2014/05/28 14:57] schatz |
plotting [2014/05/28 14:59] (current) schatz |
||
---|---|---|---|
Line 1: | Line 1: | ||
One good option for plotting is to use PYTHON's matplotlib. Below a sample script you can modify. This one graphs contents of a file called liquid.dat | One good option for plotting is to use PYTHON's matplotlib. Below a sample script you can modify. This one graphs contents of a file called liquid.dat | ||
+ | |||
+ | ** IF YOU MANAGE TO CREATE A USEFUL CODE TO PLOT XNET OUTPUT PLEASE POST HERE AND MODIFY THIS PAGE ** | ||
+ | |||
<code> | <code> | ||
from numpy import * | from numpy import * | ||
Line 29: | Line 32: | ||
The data file for this example looks like this: | The data file for this example looks like this: | ||
- | <nowiki> | + | <code> |
1 1 2 1.112300 0.991998 0.120302 | 1 1 2 1.112300 0.991998 0.120302 | ||
1 2 3 2.827267 0.368785 2.458482 | 1 2 3 2.827267 0.368785 2.458482 | ||
Line 55: | Line 58: | ||
3 10 13 3.403000 1.080470 2.322530 | 3 10 13 3.403000 1.080470 2.322530 | ||
4 2 6 4.487250 2.103653 2.383597 | 4 2 6 4.487250 2.103653 2.383597 | ||
- | </nowiki> | + | </code> |