71 CHECK (contains (gnuplot,
"set datafile separator \",;\""));
72 CHECK (contains (gnuplot,
"\"step\",\"fib\""));
73 CHECK (contains (gnuplot,
"7,21.55"));
74 CHECK (contains (gnuplot,
"set key autotitle columnheader"));
75 CHECK (contains (gnuplot,
"plot for [i=2:*] $RunData using 1:i with points"));
101 CHECK (contains (gnuplot,
"\"step\",\"fib\""));
102 CHECK (contains (gnuplot,
"7,21.55"));
103 CHECK (contains (gnuplot,
"regLine(x) = STATS_slope * x + STATS_intercept"));
104 CHECK (contains (gnuplot,
"plot $RunData using 1:2 with points"));
108 CSVData{{
"step",
"fib",
"one",
"two",
"three"}
109 ,{{0,1 , 1.0, 170,200}
110 ,{1,1 , 0.1, 160,210}
111 ,{2,2 , 1.1, 150,220}
112 ,{3,3 , 0.0,
"" ,230}
113 ,{4,5 , 1.1, 130,240}
114 ,{5,8 , 1.2, 120,250}
121 CHECK (contains (gnuplot,
"set multiplot"));
122 CHECK (contains (gnuplot,
"\"step\",\"fib\",\"one\",\"two\",\"three\""));
123 CHECK (contains (gnuplot,
"0,1,1,170,200"));
140 CSVData{{
"abscissa",
"points",
"e1",
"e2",
"e3"}
141 ,{{1,1 , 1.1,
"" ,210}
145 using namespace gnuplot_gen;
146 string gnuplot = scatterRegression(
148 .set(KEY_CSVData , csv)
149 .set(KEY_RegrSocket, 3)
150 .set(KEY_RegrSlope, -1.5)
152 .set(KEY_Xrange ,
"-1:5.5")
153 .set(KEY_Yrange ,
"0:6")
154 .set(KEY_Y2range,
"1.1:1.5")
155 .set(KEY_Y3range,
"100:*")
156 .set(KEY_Xlabel ,
"common axis")
157 .set(KEY_Ylabel ,
"measurement")
158 .set(KEY_Y2label,
"auxiliary-1")
159 .set(KEY_Y3label,
"auxiliary-2")
160 .set(KEY_TermSize,
"500,800")
164 CHECK (contains (gnuplot,
"set term wxt size 500,800"));
165 CHECK (contains (gnuplot,
"\"abscissa\",\"points\",\"e1\",\"e2\",\"e3\""));
166 CHECK (contains (gnuplot,
"regLine(x) = -1.5 * x + 3"));
167 CHECK (contains (gnuplot,
"set xlabel 'common axis'"));
168 CHECK (contains (gnuplot,
"set ylabel 'measurement'"));
169 CHECK (contains (gnuplot,
"set xrange [-1:5.5]"));
170 CHECK (contains (gnuplot,
"set yrange [0:6]"));
171 CHECK (contains (gnuplot,
"set yrange [1.1:1.5]"));
172 CHECK (contains (gnuplot,
"set ylabel 'auxiliary-1'"));
173 CHECK (contains (gnuplot,
"set y2range [100:*]"));
174 CHECK (contains (gnuplot,
"set y2label 'auxiliary-2'"));