66 string gnuplot = gnuplot_gen::dataPlot(
80 CHECK (contains (gnuplot,
"set datafile separator \",;\""));
81 CHECK (contains (gnuplot,
"\"step\",\"fib\""));
82 CHECK (contains (gnuplot,
"7,21.55"));
83 CHECK (contains (gnuplot,
"set key autotitle columnheader"));
84 CHECK (contains (gnuplot,
"plot for [i=2:*] $RunData using 1:i with points"));
97 string gnuplot = gnuplot_gen::scatterRegression(
110 CHECK (contains (gnuplot,
"\"step\",\"fib\""));
111 CHECK (contains (gnuplot,
"7,21.55"));
112 CHECK (contains (gnuplot,
"regLine(x) = STATS_slope * x + STATS_intercept"));
113 CHECK (contains (gnuplot,
"plot $RunData using 1:2 with points"));
116 gnuplot = gnuplot_gen::scatterRegression(
117 CSVData{{
"step",
"fib",
"one",
"two",
"three"}
118 ,{{0,1 , 1.0, 170,200}
119 ,{1,1 , 0.1, 160,210}
120 ,{2,2 , 1.1, 150,220}
121 ,{3,3 , 0.0,
"" ,230}
122 ,{4,5 , 1.1, 130,240}
123 ,{5,8 , 1.2, 120,250}
130 CHECK (contains (gnuplot,
"set multiplot"));
131 CHECK (contains (gnuplot,
"\"step\",\"fib\",\"one\",\"two\",\"three\""));
132 CHECK (contains (gnuplot,
"0,1,1,170,200"));
149 CSVData{{
"abscissa",
"points",
"e1",
"e2",
"e3"}
150 ,{{1,1 , 1.1,
"" ,210}
154 using namespace gnuplot_gen;
155 string gnuplot = scatterRegression(
157 .
set(KEY_CSVData , csv)
158 .
set(KEY_RegrSocket, 3)
159 .
set(KEY_RegrSlope, -1.5)
161 .
set(KEY_Xrange ,
"-1:5.5")
162 .
set(KEY_Yrange ,
"0:6")
163 .
set(KEY_Y2range,
"1.1:1.5")
164 .
set(KEY_Y3range,
"100:*")
165 .
set(KEY_Xlabel ,
"common axis")
166 .
set(KEY_Ylabel ,
"measurement")
167 .
set(KEY_Y2label,
"auxiliary-1")
168 .
set(KEY_Y3label,
"auxiliary-2")
169 .
set(KEY_TermSize,
"500,800")
173 CHECK (contains (gnuplot,
"set term wxt size 500,800"));
174 CHECK (contains (gnuplot,
"\"abscissa\",\"points\",\"e1\",\"e2\",\"e3\""));
175 CHECK (contains (gnuplot,
"regLine(x) = -1.5 * x + 3"));
176 CHECK (contains (gnuplot,
"set xlabel 'common axis'"));
177 CHECK (contains (gnuplot,
"set ylabel 'measurement'"));
178 CHECK (contains (gnuplot,
"set xrange [-1:5.5]"));
179 CHECK (contains (gnuplot,
"set yrange [0:6]"));
180 CHECK (contains (gnuplot,
"set yrange [1.1:1.5]"));
181 CHECK (contains (gnuplot,
"set ylabel 'auxiliary-1'"));
182 CHECK (contains (gnuplot,
"set y2range [100:*]"));
183 CHECK (contains (gnuplot,
"set y2label 'auxiliary-2'"));
Wrapper to simplify notation in tests.
Preconfigured setup for data visualisation with Gnuplot.
Implementation namespace for support and library code.
Simple test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
Building tree expanding and backtracking evaluations within hierarchical scopes.
void plot_scatter_regression()
void verify_customisation()
bool contains(SEQ const &cont, typename SEQ::const_reference val)
shortcut for brute-force containment test in any sequential container