Skip to content

Commit be1de70

Browse files
authored
Merge pull request #4 from kirch7/devel
Devel
2 parents b5df5ef + 38e69f5 commit be1de70

File tree

2 files changed

+55
-3
lines changed

2 files changed

+55
-3
lines changed

Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "parallel-gnuplot"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
authors = ["Cassio Kirch <cassiokirch@gmail.com>"]
5-
description = "Parallel calls to `GNUPlot`. Calls the same `GNUPlot` script once for each data file block. Please, note `GNUPlot` has copyrights, and `parallel-gnuplot` is not a modified version of `GNUPlot`."
5+
description = "Parallel calls to `GNUPlot`. Calls the same `GNUPlot` script once for each data file block."
66
keywords = ["gnuplot", "parallel", "plot", "plotting"]
77
categories = ["science"]
88
license = "GPL-3.0"

README.md

+53-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,54 @@
11
# parallel-gnuplot
2-
Call the same GNUPlot script once for each data file block.
2+
Parallel calls to <a href="http://www.gnuplot.info/">GNUPlot</a>.
3+
Calls the same <tt>GNUPlot</tt> script once for each data file block.
4+
Please, note <tt>GNUPlot</tt> has copyrights,
5+
and <tt>parallel-gnuplot</tt> is <strong>not</strong> a modified version of <tt>GNUPlot</tt>.
6+
7+
# GNUPlot variables
8+
<tt>parallel-gnuplot</tt> sets some <tt>GNUPlot</tt> variables:
9+
<ul>
10+
<li><tt>INDEX</tt>: block index, starting at <tt>0</tt>;</li>
11+
<li><tt>DATAFILE</tt>: path of a data file containing only a single block.</li>
12+
</ul>
13+
14+
# Usage
15+
<tt>parallel-gnuplot datafilename gpfilename [tmpdirectory]</tt>
16+
17+
# Example
18+
19+
data.txt:
20+
21+
```plain
22+
# block 0:
23+
0 0
24+
1 1
25+
2 2
26+
3 3
27+
4 4
28+
29+
30+
# block 1:
31+
0 0
32+
1 2
33+
2 4
34+
3 6
35+
4 8
36+
```
37+
38+
script.gp:
39+
40+
```gnuplot
41+
set terminal png size 800,600
42+
set encoding utf8
43+
44+
set xrange [0:4]
45+
set yrange [0:8]
46+
47+
set key left top
48+
set output sprintf("%d", INDEX).'.png'
49+
50+
plot DATAFILE with lp lw 2 pt 7 ps 3 title sprintf("Block %d", INDEX)
51+
```
52+
53+
You can call: <tt>parallel-gnuplot ./data.txt ./script.gp .</tt>
54+

0 commit comments

Comments
 (0)