Skip to content

Commit dfb76bf

Browse files
committed
Update documentation
- Show new plot style in sample - Update docs
1 parent a7f8592 commit dfb76bf

File tree

4 files changed

+35
-12
lines changed

4 files changed

+35
-12
lines changed

docs/CHANGES.txt

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
v0.12
2+
======
3+
- Logbook is extracted and written to txt-file
4+
- Some parts rewritten
5+
- Fractions are also plotted
6+
- Improved scaling of y-axis (still not perfect)
7+
- Option to set start/end-point for plotting
8+
- Handles files that have been analyzed and re-saved
9+
10+
11+
112
v0.11
213
======
314
- changed data structure (now mostly dicts)

docs/USAGE.txt

+24-12
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,52 @@
11
How to use PyCORN
22
=================
3-
usage: pycorn.py [-h] [-c] [-n] [-i #] [-r #] [-t] [-e] [-p] [-b #] [-s #]
4-
[-f {svg,svgz,tif,tiff,jpg,jpeg,png,ps,eps,raw,rgba,pdf,pgf}]
5-
[-u]
6-
<file>.res
3+
usage: pycorn-bin.py [-h] [-c] [-n] [-i #] [-r #] [-t] [-e] [-p]
4+
[--no_fractions] [--xmin #] [--xmax #] [--par1 PAR1]
5+
[--par2 PAR2]
6+
[-f {svg,svgz,tif,tiff,jpg,jpeg,png,ps,eps,raw,rgba,pdf,pgf
7+
}]
8+
[-d DPI] [-u] [--version]
9+
<file>.res [<file>.res ...]
710

811
Extract data from UNICORN .res files to .csv/.txt and plot them (matplotlib
912
required)
1013

1114
positional arguments:
12-
<file>.res Input .res file
15+
<file>.res Input .res file(s)
1316

1417
optional arguments:
1518
-h, --help show this help message and exit
1619
-c, --check Perform simple check if file is supported
1720
-n, --info Display entries in header
1821
-i #, --inject # Set injection number # as zero retention, use -t to
19-
find injection points
20-
-r #, --reduce # Write/Plot only every n sample
2122
find injection points
23+
-r #, --reduce # Write/Plot only every n sample
2224
-t, --points Display injection points
23-
-e, --extract Extract supported data blocks
2425
-u, --user Show stored user name
26+
--version show program's version number and exit
27+
28+
Extracting:
29+
Options for writing csv/txt files
30+
31+
-e, --extract Write csv file for supported data blocks
2532

2633
Plotting:
2734
Options for plotting
2835

2936
-p, --plot Plot curves
30-
-b #, --begin # Start point for plotting (in ml)
31-
-s #, --finish # End point for plotting (in ml)
37+
--no_fractions Disable plotting of fractions
38+
--xmin # Lower bound on the x-axis
39+
--xmax # Upper bound on the x-axis
40+
--par1 PAR1 Data for 2nd y-axis (Default=Cond)
41+
--par2 PAR2 Data for 3rd y-axis (Default=None)
3242
-f {svg,svgz,tif,tiff,jpg,jpeg,png,ps,eps,raw,rgba,pdf,pgf}, --format {svg,svg
3343
z,tif,tiff,jpg,jpeg,png,ps,eps,raw,rgba,pdf,pgf}
3444
File format of plot files (default: pdf)
45+
-d DPI, --dpi DPI DPI (dots per inch) for raster images (png, jpg,
46+
etc.). Default is 300.
3547

3648
Notes:
37-
By default PyCORN will plot from first to last fraction, as that is usually the interesting part. If no fractions are present in the run then from beginning to end. To override this behaviour you can use the (both) optional -b/-s switches to specify beginning and finish.
49+
By default PyCORN will plot from first to last fraction, as that is usually the interesting part. If no fractions are present in the run then from beginning to end. To override this behaviour you can use the (both) optional --xmin/--xmax switches to specify beginning and of the plot.
3850

3951
Examples:
4052
Show user who ran method:
@@ -56,4 +68,4 @@ Plot every third value:
5668
pycorn.py -p -r 3 input.res
5769

5870
Plot from 100 to 200ml:
59-
pycorn.py -p -b 100 -s 200 input.res
71+
pycorn.py -p --xmin 100 --xmax 200 input.res
66.9 KB
Loading
-94.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)