aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorBjörn B. Brandenburg <bbb@cs.unc.edu>2010-03-19 10:22:37 -0400
committerBjörn B. Brandenburg <bbb@cs.unc.edu>2010-03-19 10:22:37 -0400
commit47c9d5df446cd06ae566126135e26cb9279b35f2 (patch)
tree8b3e98d8f14154f8b68943ea8558e84a9a88ebcd /README
parentfbfac3ea825a863400f7196750f016b6a6a0d48d (diff)
Add small example.
Diffstat (limited to 'README')
-rw-r--r--README33
1 files changed, 33 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..3abde32
--- /dev/null
+++ b/README
@@ -0,0 +1,33 @@
1This is a simple, quick-n-dirty wrapper for plotting .csv files with
2Gnuplot.
3
4The tool will remove comments (lines starting with a '#' character) before
5passing the data to Gnuplot. This makes it possible to have experimental
6setup and date information encoded in the .csv file, which is beneficial
7for archival reasons.
8
9You can plot the example file to a PNG graph using the following command:
10
11./gnuplot.py -o example -f png --xlabel "Time" --ylabel "Supply Bound" \
12 example.csv 1 2 "Supply Bound Function"
13
14
15In general, each curve that you want to plot in a graph is defined by four
16arguments:
17
18./gnuplot.py [OPTIONS] \
19 <file1> <xcolumn1> <ycolumn1> <title1> \
20 <file2> <xcolumn2> <ycolumn2> <title2> \
21 ... and so on ...
22
23For large experiments with many graphs, it is more convenient to wrap gnuplot.py
24in a project-specific plotting script. Have a look at plot.py and plot_ohead.py
25to see how I did it. Basically, the scrips infer what to plot and how to name
26and label the graphs from the name of each .csv file.
27
28For example, the file name 'hard_rtss09_dist=uni_medium_250.csv' encodes the
29following information: 1) it uses hard real-time schedulability tests, it was
30using the RTSS'09 experimental setup and overheads, the task sets were generated
31with uniform utilization from the range [0.1, 0.4] (medium), and periods were
32distributed uniformly in [50, 250]. This is parsed by plot.py, which then
33calls gnuplot.py to generate a graph with the correct labels and settings.