next up previous contents index
Next: Index Up: Conversion from sus Files Previous: Conversion and Addition of   Contents   Index

sus2plot

sus2plot [<options>] [<label> ...]


The syntax is the same as for sus2text. By default, a gnuplot graph will be produced and displayed together with a navigation bar.

$\Rightarrow$ Tutorial 27:
Next, we will need some more complex data. Recompile sort-demo with

make LFLAGS="-D__MULTIPLE_ITERATIONS -D__TABLE_OUTPUT" clean sort-demo


and perform an experiment with, say $n=1000$. Transform the output into a sus file out2.sus, e.g.,

./sort-demo 1000 10 | table2sus > out2.sus.


sus2text < out2.sus should produce something similar to tab.txt:

tab.txt

   n   T0   T1   T2   T3       type  r
 
1000 0.01 0.00 0.01 0.00  ascending  1
1000 0.02 0.01 0.02 0.00 descending  1
1000 0.01 0.01 0.02 0.00     random 10
2000 0.03 0.00 0.03 0.02  ascending  1
2000 0.03 0.05 0.08 0.02 descending  1
2000 0.03 0.03 0.07 0.00     random 10
3000 0.07 0.00 0.07 0.04  ascending  1
3000 0.07 0.10 0.18 0.04 descending  1
3000 0.07 0.07 0.16 0.00     random 10
4000 0.11 0.00 0.12 0.08  ascending  1
4000 0.13 0.16 0.32 0.07 descending  1
4000 0.12 0.12 0.28 0.00     random 10

(1) Plot the running time T0 against $n$ for experiments of type random. (2) Plot T0, T1, T2 and T3 against $n$ but only for experiments of type descending.

Solution:

(1) sus2plot --filter='type=="random"' -sort='float(n)' T0 < out2.sus
(2) sus2plot --filter='type=="descending"'
                            -sort='float(n)' T0 T1 T2 T3 < out2.sus


The plot might alternatively be plotted into an output file <file>.<ext> specified by the option --output=<file>.<ext>. Supported output formats are ps, eps, png and pbm. The output format being used depends on the file extension <ext>.

$\Rightarrow$ Tutorial 28:
Produce an encapsulated postscript file tutorial-example.eps for Tutorial [*](2).

Solution:

sus2plot --filter='type=="descending"' -sort='float(n)' -output=tutorial-example.eps
                            T0 T1 T2 T3 < out2.sus


The result should be similar to Figure [*].

Figure: tutorial.eps
\includegraphics[scale=.8]{tutorial-example}


next up previous contents index
Next: Index Up: Conversion from sus Files Previous: Conversion and Addition of   Contents   Index
Tobias Polzin 2002-11-18