GCC Code Coverage Report


Directory: ../../../builds/dumux-repositories/
File: /builds/dumux-repositories/dumux/dumux/io/gnuplotinterface.hh
Date: 2024-09-21 20:52:54
Exec Total Coverage
Lines: 109 127 85.8%
Functions: 12 15 80.0%
Branches: 1307 3259 40.1%

Line Branch Exec Source
1 // -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 // vi: set et ts=4 sw=4 sts=4:
3 //
4 // SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 //
7 /*!
8 * \file
9 * \ingroup InputOutput
10 * \brief Interface for passing data sets to a file and plotting them, if gnuplot
11 * is installed.
12 *
13 * The data sets for a specific window have to be passed by the addDataSet function
14 * and then plotted by using the plot function.
15 */
16 #ifndef DUMUX_GNUPLOT_INTERFACE_HH
17 #define DUMUX_GNUPLOT_INTERFACE_HH
18
19 #if !DUMUX_HAVE_GNUPLOT
20 // Gnuplot has not been found by CMake, no output possible.
21 #define GNUPLOT_EXECUTABLE "/usr/bin/gnuplot"
22 #endif
23
24 #include <cassert>
25 #include <cmath>
26 #include <fstream>
27 #include <iostream>
28 #include <iomanip>
29 #include <sstream>
30 #include <string>
31 #include <vector>
32
33 #include <dune/common/exceptions.hh>
34 #include <dune/common/stdstreams.hh>
35
36 namespace Dumux {
37
38 /*!
39 * \ingroup InputOutput
40 * \brief Interface for passing data sets to a file and plotting them, if gnuplot
41 * is installed.
42 */
43 template<class Scalar>
44 class GnuplotInterface
45 {
46 public:
47 using StringVector = std::vector<std::string>;
48 enum class CurveType
49 { function, file, data };
50 using CurveTypeVector = std::vector<CurveType>;
51
52 //! \brief The constructor
53 164 explicit GnuplotInterface(bool persist = true) :
54 pipeInteractive_(0), pipeImage_(0),
55 openPlotWindow_(true), persist_(persist), createImage_(true),
56 terminalType_("x11"), outputDirectory_("./"),
57 datafileSeparator_(' '), linetype_("solid"),
58 xRangeIsSet_(false), yRangeIsSet_(false),
59 xLabel_(""), yLabel_(""),
60
20/56
✓ Branch 3 taken 164 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 164 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 164 times.
✗ Branch 10 not taken.
✓ Branch 12 taken 164 times.
✗ Branch 13 not taken.
✓ Branch 15 taken 164 times.
✗ Branch 16 not taken.
✓ Branch 18 taken 164 times.
✗ Branch 19 not taken.
✓ Branch 21 taken 164 times.
✗ Branch 22 not taken.
✓ Branch 24 taken 164 times.
✗ Branch 25 not taken.
✓ Branch 27 taken 164 times.
✗ Branch 28 not taken.
✓ Branch 30 taken 164 times.
✗ Branch 31 not taken.
✓ Branch 33 taken 164 times.
✗ Branch 34 not taken.
✓ Branch 36 taken 164 times.
✗ Branch 37 not taken.
✓ Branch 39 taken 164 times.
✗ Branch 40 not taken.
✓ Branch 42 taken 164 times.
✗ Branch 43 not taken.
✓ Branch 45 taken 164 times.
✗ Branch 46 not taken.
✓ Branch 48 taken 164 times.
✗ Branch 49 not taken.
✓ Branch 51 taken 164 times.
✗ Branch 52 not taken.
✓ Branch 54 taken 164 times.
✗ Branch 55 not taken.
✓ Branch 57 taken 164 times.
✗ Branch 58 not taken.
✓ Branch 60 taken 164 times.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✗ Branch 63 not taken.
✗ Branch 64 not taken.
✗ Branch 65 not taken.
✗ Branch 66 not taken.
✗ Branch 67 not taken.
✗ Branch 68 not taken.
✗ Branch 69 not taken.
✗ Branch 70 not taken.
✗ Branch 71 not taken.
✗ Branch 74 not taken.
✗ Branch 75 not taken.
✗ Branch 76 not taken.
✗ Branch 77 not taken.
✗ Branch 78 not taken.
✗ Branch 79 not taken.
328 gnuplotPath_(GNUPLOT_EXECUTABLE)
61 {
62
1/2
✓ Branch 1 taken 164 times.
✗ Branch 2 not taken.
164 open(persist_);
63
1/2
✓ Branch 1 taken 164 times.
✗ Branch 2 not taken.
164 resetPlot();
64 164 }
65
66 //! \brief The destructor
67 163 ~GnuplotInterface()
68 {
69 163 close();
70 603 }
71
72 /*!
73 * \brief Plots the files for a specific window number, writes a gnuplot and png file.
74 *
75 * \param filename The name of the output file
76 */
77 1297 void plot(const std::string &filename = "")
78 {
79 // set correct terminal and general options
80
6/16
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1297 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 1297 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 1297 times.
✗ Branch 11 not taken.
✗ Branch 12 not taken.
✓ Branch 13 taken 1297 times.
✓ Branch 15 taken 1297 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
3891 std::string plot = "set datafile separator \'" + std::string(1, datafileSeparator_) + "\'\n";
81
82 // set the labels and axes ranges
83
6/14
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1297 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 1297 times.
✗ Branch 8 not taken.
✓ Branch 9 taken 1283 times.
✓ Branch 10 taken 14 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 1297 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
✗ Branch 16 not taken.
2580 plot += "set xlabel \"" + xLabel_ + "\"\n";
84
6/14
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1297 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 1297 times.
✗ Branch 8 not taken.
✓ Branch 9 taken 1283 times.
✓ Branch 10 taken 14 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 1297 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
✗ Branch 16 not taken.
2580 plot += "set ylabel \"" + yLabel_ + "\"\n";
85
2/2
✓ Branch 0 taken 1060 times.
✓ Branch 1 taken 237 times.
1297 if (xRangeIsSet_)
86
15/44
✓ Branch 1 taken 1060 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1060 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 1060 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 1060 times.
✗ Branch 11 not taken.
✓ Branch 13 taken 1060 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 1060 times.
✗ Branch 17 not taken.
✓ Branch 19 taken 1060 times.
✗ Branch 20 not taken.
✓ Branch 22 taken 1060 times.
✗ Branch 23 not taken.
✓ Branch 24 taken 1060 times.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✓ Branch 27 taken 1060 times.
✗ Branch 28 not taken.
✓ Branch 29 taken 1060 times.
✗ Branch 30 not taken.
✓ Branch 31 taken 1060 times.
✗ Branch 32 not taken.
✓ Branch 33 taken 1060 times.
✗ Branch 34 not taken.
✓ Branch 35 taken 1060 times.
✗ Branch 36 not taken.
✓ Branch 37 taken 1060 times.
✗ Branch 38 not taken.
✗ Branch 39 not taken.
✗ Branch 40 not taken.
✗ Branch 41 not taken.
✗ Branch 42 not taken.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
✗ Branch 45 not taken.
✗ Branch 46 not taken.
✗ Branch 47 not taken.
✗ Branch 48 not taken.
✗ Branch 49 not taken.
✗ Branch 50 not taken.
✗ Branch 51 not taken.
2120 plot += "set xrange [" + toStringWithPrecision(xRangeMin_) + ":" + toStringWithPrecision(xRangeMax_) + "]" + "\n";
87
2/2
✓ Branch 0 taken 129 times.
✓ Branch 1 taken 1168 times.
1297 if (yRangeIsSet_)
88
15/44
✓ Branch 1 taken 129 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 129 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 129 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 129 times.
✗ Branch 11 not taken.
✓ Branch 13 taken 129 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 129 times.
✗ Branch 17 not taken.
✓ Branch 19 taken 129 times.
✗ Branch 20 not taken.
✓ Branch 22 taken 129 times.
✗ Branch 23 not taken.
✓ Branch 24 taken 129 times.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✓ Branch 27 taken 129 times.
✗ Branch 28 not taken.
✓ Branch 29 taken 129 times.
✗ Branch 30 not taken.
✓ Branch 31 taken 129 times.
✗ Branch 32 not taken.
✓ Branch 33 taken 129 times.
✗ Branch 34 not taken.
✓ Branch 35 taken 129 times.
✗ Branch 36 not taken.
✓ Branch 37 taken 129 times.
✗ Branch 38 not taken.
✗ Branch 39 not taken.
✗ Branch 40 not taken.
✗ Branch 41 not taken.
✗ Branch 42 not taken.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
✗ Branch 45 not taken.
✗ Branch 46 not taken.
✗ Branch 47 not taken.
✗ Branch 48 not taken.
✗ Branch 49 not taken.
✗ Branch 50 not taken.
✗ Branch 51 not taken.
258 plot += "set yrange [" + toStringWithPrecision(yRangeMin_) + ":" + toStringWithPrecision(yRangeMax_) + "]" + "\n";
89
90 // set user defined options
91
4/10
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1297 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 222 times.
✓ Branch 7 taken 1075 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
1297 plot += plotOptions_ + "\n";
92
93 // plot curves
94
1/2
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
1297 plot += "plot";
95
2/4
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 1297 times.
✗ Branch 4 not taken.
2594 std::string plotCommandForFile(plot);
96
4/4
✓ Branch 0 taken 2706 times.
✓ Branch 1 taken 1297 times.
✓ Branch 2 taken 2706 times.
✓ Branch 3 taken 1297 times.
8006 for (unsigned int i = 0; i < curve_.size(); ++i)
97 {
98
4/4
✓ Branch 0 taken 1 times.
✓ Branch 1 taken 2705 times.
✓ Branch 2 taken 1 times.
✓ Branch 3 taken 2705 times.
5412 if (curveType_[i] == CurveType::function)
99 {
100
9/24
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 1 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 1 times.
✗ Branch 11 not taken.
✓ Branch 13 taken 1 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 1 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 1 times.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✓ Branch 21 taken 1 times.
✗ Branch 22 not taken.
✓ Branch 23 taken 1 times.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
4 plot += + " " + curve_[i] + " " + curveOptions_[i];
101
9/24
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 1 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 1 times.
✗ Branch 11 not taken.
✓ Branch 13 taken 1 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 1 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 1 times.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✓ Branch 21 taken 1 times.
✗ Branch 22 not taken.
✓ Branch 23 taken 1 times.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
4 plotCommandForFile += + " " + curve_[i] + " " + curveOptions_[i];
102 }
103 else
104 {
105
12/30
✓ Branch 1 taken 2705 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 2705 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 2705 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 2705 times.
✗ Branch 11 not taken.
✓ Branch 13 taken 2705 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 2705 times.
✗ Branch 17 not taken.
✓ Branch 19 taken 2705 times.
✗ Branch 20 not taken.
✓ Branch 21 taken 2694 times.
✓ Branch 22 taken 11 times.
✗ Branch 23 not taken.
✓ Branch 24 taken 2705 times.
✗ Branch 25 not taken.
✓ Branch 26 taken 2705 times.
✗ Branch 27 not taken.
✓ Branch 28 taken 2705 times.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
✗ Branch 31 not taken.
✗ Branch 32 not taken.
✗ Branch 33 not taken.
✗ Branch 34 not taken.
✗ Branch 35 not taken.
✗ Branch 36 not taken.
10809 plot += + " '" + outputDirectory_ + curve_[i] + "' " + curveOptions_[i];
106
10/24
✓ Branch 1 taken 2705 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 2705 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 2705 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 2705 times.
✗ Branch 11 not taken.
✓ Branch 13 taken 2705 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 2705 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 2694 times.
✓ Branch 19 taken 11 times.
✗ Branch 20 not taken.
✓ Branch 21 taken 2705 times.
✗ Branch 22 not taken.
✓ Branch 23 taken 2705 times.
✗ Branch 24 not taken.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
10809 plotCommandForFile += + " '" + curve_[i] + "' " + curveOptions_[i];
107 }
108
109
4/4
✓ Branch 0 taken 1409 times.
✓ Branch 1 taken 1297 times.
✓ Branch 2 taken 1409 times.
✓ Branch 3 taken 1297 times.
5412 if (i < curve_.size()-1)
110 {
111
1/2
✓ Branch 1 taken 1409 times.
✗ Branch 2 not taken.
1409 plot += ",\\";
112
1/2
✓ Branch 1 taken 1409 times.
✗ Branch 2 not taken.
1409 plotCommandForFile += ",\\";
113 }
114
1/2
✓ Branch 1 taken 2706 times.
✗ Branch 2 not taken.
2706 plot += "\n";
115
1/2
✓ Branch 1 taken 2706 times.
✗ Branch 2 not taken.
2706 plotCommandForFile += "\n";
116 }
117
118 // initialize the interactive plot
119
4/10
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1297 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 1297 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 1297 times.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
5188 std::string interactivePlot = "reset\n";
120
121 // set the terminal if the defaults were overwritten
122
2/4
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
✗ Branch 4 not taken.
✓ Branch 5 taken 1297 times.
1297 if (terminalType_.compare("x11") != 0 || linetype_.compare("solid") != 0)
123 interactivePlot += "set term " + terminalType_ + " " + linetype_ + " " + " \n";
124
125 // add the plot command and plot
126
1/2
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
1297 interactivePlot += plot;
127
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 1297 times.
1297 if (openPlotWindow_)
128 executeGnuplot(interactivePlot, pipeInteractive_);
129
130 // create a gnuplot file if a filename is specified
131
1/2
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
1297 if (filename.compare("") != 0)
132 {
133
2/6
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1297 times.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
3891 std::string filePlot = "reset\n";
134
5/14
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1297 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 1297 times.
✗ Branch 8 not taken.
✓ Branch 9 taken 1297 times.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✓ Branch 12 taken 1297 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
✗ Branch 16 not taken.
2594 filePlot += "set term pngcairo size 800,600 " + linetype_ + " \n";
135
5/14
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1297 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 1297 times.
✗ Branch 8 not taken.
✓ Branch 9 taken 1297 times.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
✓ Branch 12 taken 1297 times.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
✗ Branch 16 not taken.
2594 filePlot += "set output \"" + filename + ".png\"\n";
136
1/2
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
1297 filePlot += plot;
137
3/10
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1297 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 1297 times.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
2594 std::string gnuplotFileName = outputDirectory_ + filename + ".gp";
138
3/4
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1283 times.
✓ Branch 5 taken 14 times.
2594 std::ofstream file;
139
1/2
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
1297 file.open(gnuplotFileName);
140
1/2
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
1297 file << filePlot;
141
1/2
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
1297 file.close();
142
143 // create the image if desired
144
1/2
✓ Branch 0 taken 1297 times.
✗ Branch 1 not taken.
1297 if (createImage_)
145
1/2
✓ Branch 1 taken 1297 times.
✗ Branch 2 not taken.
1297 executeGnuplot(filePlot, pipeImage_);
146 }
147 1297 }
148
149 /*!
150 * \brief Resets all gnuplot parameters
151 */
152 7 void resetAll(const bool persist = true)
153 {
154 7 close();
155 7 open(persist);
156 7 resetPlot();
157 7 }
158
159 /*!
160 * \brief Deletes all plots from a plotting window and resets user-defined options
161 */
162 1322 void resetPlot()
163 {
164 1322 curve_.clear();
165 1322 curveOptions_.clear();
166 1322 plotOptions_ = "";
167 1322 }
168
169 /*!
170 * \brief Opens gnuplot
171 */
172 171 void open(const bool persist = true)
173 {
174
2/2
✓ Branch 0 taken 143 times.
✓ Branch 1 taken 28 times.
171 if (persist)
175
3/8
✓ Branch 2 taken 143 times.
✗ Branch 3 not taken.
✓ Branch 5 taken 143 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 143 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
286 pipeInteractive_ = popen((gnuplotPath_ + " -persist").c_str(), "w"); // "w" - writing
176 else
177 56 pipeInteractive_ = popen((gnuplotPath_).c_str(), "w");
178
179 // the image pipe should not persist
180 342 pipeImage_ = popen((gnuplotPath_).c_str(), "w");
181 171 }
182
183 /*!
184 * \brief Closes gnuplot
185 */
186 void close()
187 {
188 if (pclose(pipeInteractive_) == -1 || pclose(pipeImage_) == -1)
189 assert("Could not close pipe to Gnuplot!");
190 }
191
192 /*!
193 * \brief Adds a function to list of plots
194 *
195 * \param function Function to be plotted
196 * \param options Specific gnuplot options passed to this plot
197 */
198 1 void addFunctionToPlot(const std::string& function,
199 const std::string& options = "with lines")
200 {
201 1 curve_.push_back(function);
202 1 curveOptions_.push_back(options);
203 1 curveType_.push_back(CurveType::function);
204 1 }
205
206 /*!
207 * \brief Adds a file to list of plots
208 *
209 * \param fileName Name and path of the file to be plotted
210 * \param options Specific gnuplot options passed to this plot
211 */
212 1 void addFileToPlot(const std::string& fileName,
213 const std::string& options = "with lines")
214 {
215 1 curve_.push_back(fileName);
216 1 curveOptions_.push_back(options);
217 1 curveType_.push_back(CurveType::file);
218 1 }
219
220 /*!
221 * \brief Adds a data set and writes a data file
222 *
223 * The title of the plot can be changed by setting the title in the options
224 *
225 * \param x Vector containing the x-axis data points
226 * \param y Vector containing the y-axis data points
227 * \param fileName The name of the written data file
228 * \param options Specific gnuplot options passed to this plot
229 */
230 template<class DataX, class DataY>
231 2689 void addDataSetToPlot(const DataX& x, const DataY& y,
232 const std::string& fileName,
233 const std::string& options = "with lines")
234 {
235
4/8
✓ Branch 0 taken 2689 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 2689 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✓ Branch 5 taken 2689 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 2689 times.
5378 if (x.size() == 0 || y.size() == 0)
236 DUNE_THROW(Dune::InvalidStateException, "Data vectors have to contain data!");
237
238
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2689 times.
2689 if (x.size() > y.size())
239 DUNE_THROW(Dune::InvalidStateException, "Non-matching data field sizes!");
240
241
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 2689 times.
2689 if (x.size() != y.size())
242 std::cout << "GnuplotInterface warning: Added data fields of different size! "
243 << "Only plotting the first " << x.size() << " elements.\n";
244
245 // write data to file
246 2689 std::ofstream file;
247
4/8
✓ Branch 1 taken 2689 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 2689 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 2670 times.
✓ Branch 7 taken 19 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
2689 file.open(outputDirectory_ + fileName);
248
4/4
✓ Branch 0 taken 488863 times.
✓ Branch 1 taken 2689 times.
✓ Branch 2 taken 488863 times.
✓ Branch 3 taken 2689 times.
980415 for (unsigned int i = 0; i < x.size(); i++)
249 {
250
11/28
✓ Branch 1 taken 488863 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 488863 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 488863 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 488863 times.
✗ Branch 11 not taken.
✓ Branch 13 taken 488863 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 488863 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 488803 times.
✓ Branch 19 taken 60 times.
✗ Branch 20 not taken.
✓ Branch 21 taken 488863 times.
✗ Branch 22 not taken.
✓ Branch 23 taken 488863 times.
✗ Branch 24 not taken.
✓ Branch 25 taken 488863 times.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
✗ Branch 31 not taken.
✗ Branch 32 not taken.
✗ Branch 33 not taken.
977666 checkNumber(x[i], "x[i] i=" + std::to_string(i) + " in " + fileName);
251
11/28
✓ Branch 1 taken 488863 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 488863 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 488863 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 488863 times.
✗ Branch 11 not taken.
✓ Branch 13 taken 488863 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 488863 times.
✗ Branch 17 not taken.
✓ Branch 18 taken 488803 times.
✓ Branch 19 taken 60 times.
✗ Branch 20 not taken.
✓ Branch 21 taken 488863 times.
✗ Branch 22 not taken.
✓ Branch 23 taken 488863 times.
✗ Branch 24 not taken.
✓ Branch 25 taken 488863 times.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✗ Branch 28 not taken.
✗ Branch 29 not taken.
✗ Branch 30 not taken.
✗ Branch 31 not taken.
✗ Branch 32 not taken.
✗ Branch 33 not taken.
977666 checkNumber(y[i], "y[i] i=" + std::to_string(i) + " in " + fileName);
252
6/12
✓ Branch 1 taken 488863 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 488863 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 488863 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 488863 times.
✗ Branch 11 not taken.
✓ Branch 13 taken 488863 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 488863 times.
✗ Branch 17 not taken.
977726 file << x[i] << datafileSeparator_ << y[i] << std::endl;
253 }
254
1/2
✓ Branch 1 taken 2689 times.
✗ Branch 2 not taken.
2689 file.close();
255
256 // adding file to list of plotted lines
257
1/2
✓ Branch 1 taken 2689 times.
✗ Branch 2 not taken.
2689 curve_.push_back(fileName);
258
1/2
✓ Branch 1 taken 2689 times.
✗ Branch 2 not taken.
2689 curveOptions_.push_back(options);
259
1/2
✓ Branch 1 taken 2689 times.
✗ Branch 2 not taken.
2689 curveType_.push_back(CurveType::data);
260 2689 }
261
262 /*!
263 * \brief Sets the label for the x-axis
264 *
265 * \param label The label of the x-axis
266 */
267 void setXlabel(const std::string& label)
268 {
269
241/716
✓ Branch 1 taken 1154 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 2 times.
✓ Branch 4 taken 1152 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 2 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 4 times.
✓ Branch 9 taken 2 times.
✗ Branch 10 not taken.
✓ Branch 11 taken 4 times.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 1 times.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✓ Branch 18 taken 1 times.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✓ Branch 22 taken 1 times.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
✓ Branch 25 taken 1 times.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✓ Branch 29 taken 1 times.
✗ Branch 30 not taken.
✗ Branch 31 not taken.
✓ Branch 32 taken 1 times.
✗ Branch 33 not taken.
✗ Branch 34 not taken.
✓ Branch 36 taken 1 times.
✗ Branch 37 not taken.
✗ Branch 38 not taken.
✓ Branch 39 taken 1 times.
✗ Branch 40 not taken.
✗ Branch 41 not taken.
✓ Branch 43 taken 1 times.
✗ Branch 44 not taken.
✗ Branch 45 not taken.
✓ Branch 46 taken 1 times.
✗ Branch 47 not taken.
✗ Branch 48 not taken.
✓ Branch 50 taken 1 times.
✗ Branch 51 not taken.
✗ Branch 52 not taken.
✓ Branch 53 taken 1 times.
✗ Branch 54 not taken.
✗ Branch 55 not taken.
✓ Branch 57 taken 1 times.
✗ Branch 58 not taken.
✗ Branch 59 not taken.
✓ Branch 60 taken 1 times.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✓ Branch 64 taken 1 times.
✗ Branch 65 not taken.
✗ Branch 66 not taken.
✓ Branch 67 taken 1 times.
✗ Branch 68 not taken.
✗ Branch 69 not taken.
✓ Branch 71 taken 1 times.
✗ Branch 72 not taken.
✗ Branch 73 not taken.
✓ Branch 74 taken 1 times.
✗ Branch 75 not taken.
✗ Branch 76 not taken.
✓ Branch 78 taken 1 times.
✗ Branch 79 not taken.
✗ Branch 80 not taken.
✓ Branch 81 taken 1 times.
✗ Branch 82 not taken.
✗ Branch 83 not taken.
✓ Branch 85 taken 1 times.
✗ Branch 86 not taken.
✗ Branch 87 not taken.
✓ Branch 88 taken 1 times.
✗ Branch 89 not taken.
✗ Branch 90 not taken.
✓ Branch 92 taken 1 times.
✗ Branch 93 not taken.
✗ Branch 94 not taken.
✓ Branch 95 taken 1 times.
✗ Branch 96 not taken.
✗ Branch 97 not taken.
✓ Branch 99 taken 1 times.
✗ Branch 100 not taken.
✗ Branch 101 not taken.
✓ Branch 102 taken 1 times.
✗ Branch 103 not taken.
✗ Branch 104 not taken.
✓ Branch 106 taken 1 times.
✗ Branch 107 not taken.
✗ Branch 108 not taken.
✓ Branch 109 taken 1 times.
✗ Branch 110 not taken.
✗ Branch 111 not taken.
✓ Branch 113 taken 1 times.
✗ Branch 114 not taken.
✗ Branch 115 not taken.
✓ Branch 116 taken 1 times.
✗ Branch 117 not taken.
✗ Branch 118 not taken.
✓ Branch 120 taken 1 times.
✗ Branch 121 not taken.
✗ Branch 122 not taken.
✓ Branch 123 taken 1 times.
✗ Branch 124 not taken.
✗ Branch 125 not taken.
✓ Branch 127 taken 1 times.
✗ Branch 128 not taken.
✗ Branch 129 not taken.
✓ Branch 130 taken 1 times.
✗ Branch 131 not taken.
✗ Branch 132 not taken.
✓ Branch 134 taken 1 times.
✗ Branch 135 not taken.
✗ Branch 136 not taken.
✓ Branch 137 taken 1 times.
✗ Branch 138 not taken.
✗ Branch 139 not taken.
✓ Branch 141 taken 1 times.
✗ Branch 142 not taken.
✗ Branch 143 not taken.
✓ Branch 144 taken 1 times.
✗ Branch 145 not taken.
✗ Branch 146 not taken.
✓ Branch 148 taken 1 times.
✗ Branch 149 not taken.
✗ Branch 150 not taken.
✓ Branch 151 taken 1 times.
✗ Branch 152 not taken.
✗ Branch 153 not taken.
✓ Branch 155 taken 1 times.
✗ Branch 156 not taken.
✗ Branch 157 not taken.
✓ Branch 158 taken 1 times.
✗ Branch 159 not taken.
✗ Branch 160 not taken.
✓ Branch 162 taken 1 times.
✗ Branch 163 not taken.
✗ Branch 164 not taken.
✓ Branch 165 taken 1 times.
✗ Branch 166 not taken.
✗ Branch 167 not taken.
✓ Branch 169 taken 1 times.
✗ Branch 170 not taken.
✗ Branch 171 not taken.
✓ Branch 172 taken 1 times.
✗ Branch 173 not taken.
✗ Branch 174 not taken.
✓ Branch 176 taken 1 times.
✗ Branch 177 not taken.
✗ Branch 178 not taken.
✓ Branch 179 taken 1 times.
✗ Branch 180 not taken.
✗ Branch 181 not taken.
✓ Branch 183 taken 1 times.
✗ Branch 184 not taken.
✗ Branch 185 not taken.
✓ Branch 186 taken 1 times.
✗ Branch 187 not taken.
✗ Branch 188 not taken.
✓ Branch 190 taken 1 times.
✗ Branch 191 not taken.
✗ Branch 192 not taken.
✓ Branch 193 taken 1 times.
✗ Branch 194 not taken.
✗ Branch 195 not taken.
✓ Branch 197 taken 1 times.
✗ Branch 198 not taken.
✗ Branch 199 not taken.
✓ Branch 200 taken 1 times.
✗ Branch 201 not taken.
✗ Branch 202 not taken.
✓ Branch 204 taken 1 times.
✗ Branch 205 not taken.
✗ Branch 206 not taken.
✓ Branch 207 taken 1 times.
✗ Branch 208 not taken.
✗ Branch 209 not taken.
✓ Branch 211 taken 1 times.
✗ Branch 212 not taken.
✗ Branch 213 not taken.
✓ Branch 214 taken 1 times.
✗ Branch 215 not taken.
✗ Branch 216 not taken.
✓ Branch 218 taken 1 times.
✗ Branch 219 not taken.
✗ Branch 220 not taken.
✓ Branch 221 taken 1 times.
✗ Branch 222 not taken.
✗ Branch 223 not taken.
✓ Branch 225 taken 1 times.
✗ Branch 226 not taken.
✗ Branch 227 not taken.
✓ Branch 228 taken 1 times.
✗ Branch 229 not taken.
✗ Branch 230 not taken.
✓ Branch 232 taken 1 times.
✗ Branch 233 not taken.
✗ Branch 234 not taken.
✓ Branch 235 taken 1 times.
✗ Branch 236 not taken.
✗ Branch 237 not taken.
✓ Branch 239 taken 1 times.
✗ Branch 240 not taken.
✗ Branch 241 not taken.
✓ Branch 242 taken 1 times.
✗ Branch 243 not taken.
✗ Branch 244 not taken.
✓ Branch 246 taken 1 times.
✗ Branch 247 not taken.
✗ Branch 248 not taken.
✓ Branch 249 taken 1 times.
✗ Branch 250 not taken.
✗ Branch 251 not taken.
✓ Branch 253 taken 1 times.
✗ Branch 254 not taken.
✗ Branch 255 not taken.
✓ Branch 256 taken 1 times.
✗ Branch 257 not taken.
✗ Branch 258 not taken.
✓ Branch 260 taken 1 times.
✗ Branch 261 not taken.
✗ Branch 262 not taken.
✓ Branch 263 taken 1 times.
✗ Branch 264 not taken.
✗ Branch 265 not taken.
✓ Branch 267 taken 1 times.
✗ Branch 268 not taken.
✗ Branch 269 not taken.
✓ Branch 270 taken 1 times.
✗ Branch 271 not taken.
✗ Branch 272 not taken.
✓ Branch 274 taken 1 times.
✗ Branch 275 not taken.
✗ Branch 276 not taken.
✓ Branch 277 taken 1 times.
✗ Branch 278 not taken.
✗ Branch 279 not taken.
✓ Branch 281 taken 1 times.
✗ Branch 282 not taken.
✗ Branch 283 not taken.
✓ Branch 284 taken 1 times.
✗ Branch 285 not taken.
✗ Branch 286 not taken.
✓ Branch 288 taken 1 times.
✗ Branch 289 not taken.
✗ Branch 290 not taken.
✓ Branch 291 taken 1 times.
✗ Branch 292 not taken.
✗ Branch 293 not taken.
✓ Branch 295 taken 1 times.
✗ Branch 296 not taken.
✗ Branch 297 not taken.
✓ Branch 298 taken 1 times.
✗ Branch 299 not taken.
✗ Branch 300 not taken.
✓ Branch 302 taken 1 times.
✗ Branch 303 not taken.
✗ Branch 304 not taken.
✓ Branch 305 taken 1 times.
✗ Branch 306 not taken.
✗ Branch 307 not taken.
✓ Branch 309 taken 1 times.
✗ Branch 310 not taken.
✗ Branch 311 not taken.
✓ Branch 312 taken 1 times.
✗ Branch 313 not taken.
✗ Branch 314 not taken.
✓ Branch 316 taken 1 times.
✗ Branch 317 not taken.
✗ Branch 318 not taken.
✓ Branch 319 taken 1 times.
✗ Branch 320 not taken.
✗ Branch 321 not taken.
✓ Branch 323 taken 1 times.
✗ Branch 324 not taken.
✗ Branch 325 not taken.
✓ Branch 326 taken 1 times.
✗ Branch 327 not taken.
✗ Branch 328 not taken.
✓ Branch 330 taken 1 times.
✗ Branch 331 not taken.
✗ Branch 332 not taken.
✓ Branch 333 taken 1 times.
✗ Branch 334 not taken.
✗ Branch 335 not taken.
✓ Branch 337 taken 1 times.
✗ Branch 338 not taken.
✗ Branch 339 not taken.
✓ Branch 340 taken 1 times.
✗ Branch 341 not taken.
✗ Branch 342 not taken.
✓ Branch 344 taken 1 times.
✗ Branch 345 not taken.
✗ Branch 346 not taken.
✓ Branch 347 taken 1 times.
✗ Branch 348 not taken.
✗ Branch 349 not taken.
✓ Branch 351 taken 1 times.
✗ Branch 352 not taken.
✗ Branch 353 not taken.
✓ Branch 354 taken 1 times.
✗ Branch 355 not taken.
✗ Branch 356 not taken.
✓ Branch 358 taken 1 times.
✗ Branch 359 not taken.
✗ Branch 360 not taken.
✓ Branch 361 taken 1 times.
✗ Branch 362 not taken.
✗ Branch 363 not taken.
✓ Branch 365 taken 1 times.
✗ Branch 366 not taken.
✗ Branch 367 not taken.
✓ Branch 368 taken 1 times.
✗ Branch 369 not taken.
✗ Branch 370 not taken.
✓ Branch 372 taken 1 times.
✗ Branch 373 not taken.
✗ Branch 374 not taken.
✓ Branch 375 taken 1 times.
✗ Branch 376 not taken.
✗ Branch 377 not taken.
✓ Branch 379 taken 1 times.
✗ Branch 380 not taken.
✗ Branch 381 not taken.
✓ Branch 382 taken 1 times.
✗ Branch 383 not taken.
✗ Branch 384 not taken.
✓ Branch 386 taken 1 times.
✗ Branch 387 not taken.
✗ Branch 388 not taken.
✓ Branch 389 taken 1 times.
✗ Branch 390 not taken.
✗ Branch 391 not taken.
✓ Branch 393 taken 1 times.
✗ Branch 394 not taken.
✗ Branch 395 not taken.
✓ Branch 396 taken 1 times.
✗ Branch 397 not taken.
✗ Branch 398 not taken.
✓ Branch 400 taken 1 times.
✗ Branch 401 not taken.
✗ Branch 402 not taken.
✓ Branch 403 taken 1 times.
✗ Branch 404 not taken.
✗ Branch 405 not taken.
✓ Branch 407 taken 1 times.
✗ Branch 408 not taken.
✗ Branch 409 not taken.
✓ Branch 410 taken 1 times.
✗ Branch 411 not taken.
✗ Branch 412 not taken.
✓ Branch 414 taken 1 times.
✗ Branch 415 not taken.
✗ Branch 416 not taken.
✓ Branch 417 taken 1 times.
✗ Branch 418 not taken.
✗ Branch 419 not taken.
✓ Branch 421 taken 1 times.
✗ Branch 422 not taken.
✗ Branch 423 not taken.
✓ Branch 424 taken 1 times.
✗ Branch 425 not taken.
✗ Branch 426 not taken.
✓ Branch 428 taken 1 times.
✗ Branch 429 not taken.
✗ Branch 430 not taken.
✓ Branch 431 taken 1 times.
✗ Branch 432 not taken.
✗ Branch 433 not taken.
✓ Branch 435 taken 1 times.
✗ Branch 436 not taken.
✗ Branch 437 not taken.
✓ Branch 438 taken 1 times.
✗ Branch 439 not taken.
✗ Branch 440 not taken.
✓ Branch 442 taken 1 times.
✗ Branch 443 not taken.
✗ Branch 444 not taken.
✓ Branch 445 taken 1 times.
✗ Branch 446 not taken.
✗ Branch 447 not taken.
✓ Branch 449 taken 1 times.
✗ Branch 450 not taken.
✗ Branch 451 not taken.
✓ Branch 452 taken 1 times.
✗ Branch 453 not taken.
✗ Branch 454 not taken.
✓ Branch 456 taken 1 times.
✗ Branch 457 not taken.
✗ Branch 458 not taken.
✓ Branch 459 taken 1 times.
✗ Branch 460 not taken.
✗ Branch 461 not taken.
✓ Branch 463 taken 1 times.
✗ Branch 464 not taken.
✗ Branch 465 not taken.
✓ Branch 466 taken 1 times.
✗ Branch 467 not taken.
✗ Branch 468 not taken.
✓ Branch 470 taken 1 times.
✗ Branch 471 not taken.
✗ Branch 472 not taken.
✓ Branch 473 taken 1 times.
✗ Branch 474 not taken.
✗ Branch 475 not taken.
✓ Branch 477 taken 1 times.
✗ Branch 478 not taken.
✗ Branch 479 not taken.
✓ Branch 480 taken 1 times.
✗ Branch 481 not taken.
✗ Branch 482 not taken.
✓ Branch 484 taken 1 times.
✗ Branch 485 not taken.
✗ Branch 486 not taken.
✓ Branch 487 taken 1 times.
✗ Branch 488 not taken.
✗ Branch 489 not taken.
✓ Branch 491 taken 1 times.
✗ Branch 492 not taken.
✗ Branch 493 not taken.
✓ Branch 494 taken 1 times.
✗ Branch 495 not taken.
✗ Branch 496 not taken.
✓ Branch 498 taken 1 times.
✗ Branch 499 not taken.
✗ Branch 500 not taken.
✓ Branch 501 taken 1 times.
✗ Branch 502 not taken.
✗ Branch 503 not taken.
✓ Branch 505 taken 1 times.
✗ Branch 506 not taken.
✗ Branch 507 not taken.
✓ Branch 508 taken 1 times.
✗ Branch 509 not taken.
✗ Branch 510 not taken.
✓ Branch 512 taken 1 times.
✗ Branch 513 not taken.
✗ Branch 514 not taken.
✓ Branch 515 taken 1 times.
✗ Branch 516 not taken.
✗ Branch 517 not taken.
✓ Branch 519 taken 1 times.
✗ Branch 520 not taken.
✗ Branch 521 not taken.
✓ Branch 522 taken 1 times.
✗ Branch 523 not taken.
✗ Branch 524 not taken.
✓ Branch 526 taken 1 times.
✗ Branch 527 not taken.
✗ Branch 528 not taken.
✓ Branch 529 taken 1 times.
✗ Branch 530 not taken.
✗ Branch 531 not taken.
✓ Branch 533 taken 1 times.
✗ Branch 534 not taken.
✗ Branch 535 not taken.
✓ Branch 536 taken 1 times.
✗ Branch 537 not taken.
✗ Branch 538 not taken.
✓ Branch 540 taken 1 times.
✗ Branch 541 not taken.
✗ Branch 542 not taken.
✓ Branch 543 taken 1 times.
✗ Branch 544 not taken.
✗ Branch 545 not taken.
✓ Branch 547 taken 1 times.
✗ Branch 548 not taken.
✗ Branch 549 not taken.
✓ Branch 550 taken 1 times.
✗ Branch 551 not taken.
✗ Branch 552 not taken.
✓ Branch 554 taken 1 times.
✗ Branch 555 not taken.
✗ Branch 556 not taken.
✓ Branch 557 taken 1 times.
✗ Branch 558 not taken.
✗ Branch 559 not taken.
✓ Branch 561 taken 1 times.
✗ Branch 562 not taken.
✗ Branch 563 not taken.
✓ Branch 564 taken 1 times.
✗ Branch 565 not taken.
✗ Branch 566 not taken.
✓ Branch 568 taken 1 times.
✗ Branch 569 not taken.
✗ Branch 570 not taken.
✓ Branch 571 taken 1 times.
✗ Branch 572 not taken.
✗ Branch 573 not taken.
✓ Branch 575 taken 1 times.
✗ Branch 576 not taken.
✗ Branch 577 not taken.
✓ Branch 578 taken 1 times.
✗ Branch 579 not taken.
✗ Branch 580 not taken.
✓ Branch 582 taken 1 times.
✗ Branch 583 not taken.
✗ Branch 584 not taken.
✓ Branch 585 taken 1 times.
✗ Branch 586 not taken.
✗ Branch 587 not taken.
✓ Branch 589 taken 1 times.
✗ Branch 590 not taken.
✗ Branch 591 not taken.
✓ Branch 592 taken 1 times.
✗ Branch 593 not taken.
✗ Branch 594 not taken.
✓ Branch 596 taken 1 times.
✗ Branch 597 not taken.
✗ Branch 598 not taken.
✓ Branch 599 taken 1 times.
✗ Branch 600 not taken.
✗ Branch 601 not taken.
✓ Branch 603 taken 1 times.
✗ Branch 604 not taken.
✗ Branch 605 not taken.
✓ Branch 606 taken 1 times.
✗ Branch 607 not taken.
✗ Branch 608 not taken.
✓ Branch 610 taken 1 times.
✗ Branch 611 not taken.
✗ Branch 612 not taken.
✓ Branch 613 taken 1 times.
✗ Branch 614 not taken.
✗ Branch 615 not taken.
✓ Branch 617 taken 1 times.
✗ Branch 618 not taken.
✗ Branch 619 not taken.
✓ Branch 620 taken 1 times.
✗ Branch 621 not taken.
✗ Branch 622 not taken.
✓ Branch 624 taken 1 times.
✗ Branch 625 not taken.
✗ Branch 626 not taken.
✓ Branch 627 taken 1 times.
✗ Branch 628 not taken.
✗ Branch 629 not taken.
✓ Branch 631 taken 1 times.
✗ Branch 632 not taken.
✗ Branch 633 not taken.
✓ Branch 634 taken 1 times.
✗ Branch 635 not taken.
✗ Branch 636 not taken.
✓ Branch 638 taken 1 times.
✗ Branch 639 not taken.
✗ Branch 640 not taken.
✓ Branch 641 taken 1 times.
✗ Branch 642 not taken.
✗ Branch 643 not taken.
✓ Branch 645 taken 1 times.
✗ Branch 646 not taken.
✗ Branch 647 not taken.
✓ Branch 648 taken 1 times.
✗ Branch 649 not taken.
✗ Branch 650 not taken.
✓ Branch 652 taken 1 times.
✗ Branch 653 not taken.
✗ Branch 654 not taken.
✓ Branch 655 taken 1 times.
✗ Branch 656 not taken.
✗ Branch 657 not taken.
✓ Branch 659 taken 1 times.
✗ Branch 660 not taken.
✗ Branch 661 not taken.
✓ Branch 662 taken 1 times.
✗ Branch 663 not taken.
✗ Branch 664 not taken.
✓ Branch 666 taken 1 times.
✗ Branch 667 not taken.
✗ Branch 668 not taken.
✓ Branch 669 taken 1 times.
✗ Branch 670 not taken.
✗ Branch 671 not taken.
✓ Branch 673 taken 1 times.
✗ Branch 674 not taken.
✗ Branch 675 not taken.
✓ Branch 676 taken 1 times.
✗ Branch 677 not taken.
✗ Branch 678 not taken.
✓ Branch 680 taken 1 times.
✗ Branch 681 not taken.
✗ Branch 682 not taken.
✓ Branch 683 taken 1 times.
✗ Branch 684 not taken.
✗ Branch 685 not taken.
✓ Branch 687 taken 1 times.
✗ Branch 688 not taken.
✗ Branch 689 not taken.
✓ Branch 690 taken 1 times.
✗ Branch 691 not taken.
✗ Branch 692 not taken.
✓ Branch 694 taken 1 times.
✗ Branch 695 not taken.
✗ Branch 696 not taken.
✓ Branch 697 taken 1 times.
✗ Branch 698 not taken.
✗ Branch 699 not taken.
✓ Branch 701 taken 1 times.
✗ Branch 702 not taken.
✗ Branch 703 not taken.
✓ Branch 704 taken 1 times.
✗ Branch 705 not taken.
✗ Branch 706 not taken.
✓ Branch 708 taken 1 times.
✗ Branch 709 not taken.
✗ Branch 710 not taken.
✓ Branch 711 taken 1 times.
✗ Branch 712 not taken.
✗ Branch 713 not taken.
✓ Branch 715 taken 1 times.
✗ Branch 716 not taken.
✗ Branch 717 not taken.
✓ Branch 718 taken 1 times.
✗ Branch 719 not taken.
✗ Branch 720 not taken.
✓ Branch 722 taken 1 times.
✗ Branch 723 not taken.
✗ Branch 724 not taken.
✓ Branch 725 taken 1 times.
✗ Branch 726 not taken.
✗ Branch 727 not taken.
✓ Branch 729 taken 1 times.
✗ Branch 730 not taken.
✗ Branch 731 not taken.
✓ Branch 732 taken 1 times.
✗ Branch 733 not taken.
✗ Branch 734 not taken.
✓ Branch 736 taken 1 times.
✗ Branch 737 not taken.
✗ Branch 738 not taken.
✓ Branch 739 taken 1 times.
✗ Branch 740 not taken.
✗ Branch 741 not taken.
✓ Branch 743 taken 1 times.
✗ Branch 744 not taken.
✗ Branch 745 not taken.
✓ Branch 746 taken 1 times.
✗ Branch 747 not taken.
✗ Branch 748 not taken.
✓ Branch 750 taken 1 times.
✗ Branch 751 not taken.
✗ Branch 752 not taken.
✓ Branch 753 taken 1 times.
✗ Branch 754 not taken.
✗ Branch 755 not taken.
✓ Branch 757 taken 1 times.
✗ Branch 758 not taken.
✗ Branch 759 not taken.
✓ Branch 760 taken 1 times.
✗ Branch 761 not taken.
✗ Branch 762 not taken.
✓ Branch 764 taken 1 times.
✗ Branch 765 not taken.
✗ Branch 766 not taken.
✓ Branch 767 taken 1 times.
✗ Branch 768 not taken.
✗ Branch 769 not taken.
✓ Branch 771 taken 1 times.
✗ Branch 772 not taken.
✗ Branch 773 not taken.
✓ Branch 774 taken 1 times.
✗ Branch 775 not taken.
✗ Branch 776 not taken.
✓ Branch 778 taken 1 times.
✗ Branch 779 not taken.
✗ Branch 780 not taken.
✓ Branch 781 taken 1 times.
✗ Branch 782 not taken.
✗ Branch 783 not taken.
✓ Branch 785 taken 1 times.
✗ Branch 786 not taken.
✗ Branch 787 not taken.
✓ Branch 788 taken 1 times.
✗ Branch 789 not taken.
✗ Branch 790 not taken.
✓ Branch 792 taken 1 times.
✗ Branch 793 not taken.
✗ Branch 794 not taken.
✓ Branch 795 taken 1 times.
✗ Branch 796 not taken.
✗ Branch 797 not taken.
✓ Branch 799 taken 1 times.
✗ Branch 800 not taken.
✗ Branch 801 not taken.
✓ Branch 802 taken 1 times.
✗ Branch 803 not taken.
✗ Branch 804 not taken.
✓ Branch 806 taken 1 times.
✗ Branch 807 not taken.
✗ Branch 808 not taken.
✓ Branch 809 taken 1 times.
✗ Branch 810 not taken.
✗ Branch 811 not taken.
✓ Branch 813 taken 1 times.
✗ Branch 814 not taken.
✗ Branch 815 not taken.
✓ Branch 816 taken 1 times.
✗ Branch 817 not taken.
✗ Branch 818 not taken.
✓ Branch 820 taken 1 times.
✗ Branch 821 not taken.
✗ Branch 822 not taken.
✓ Branch 823 taken 1 times.
✗ Branch 824 not taken.
✗ Branch 825 not taken.
✓ Branch 827 taken 1 times.
✗ Branch 828 not taken.
✗ Branch 829 not taken.
✓ Branch 830 taken 1 times.
✗ Branch 831 not taken.
✗ Branch 832 not taken.
1286 xLabel_ = label;
270 }
271
272 /*!
273 * \brief Sets the label for the y-axis
274 *
275 * \param label The label of the y-axis
276 */
277 void setYlabel(const std::string& label)
278 {
279
242/716
✓ Branch 1 taken 1154 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 1151 times.
✓ Branch 4 taken 3 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 2 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 4 times.
✓ Branch 9 taken 2 times.
✓ Branch 10 taken 1 times.
✓ Branch 11 taken 3 times.
✗ Branch 12 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
✓ Branch 15 taken 1 times.
✗ Branch 16 not taken.
✓ Branch 17 taken 1 times.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✓ Branch 22 taken 1 times.
✗ Branch 23 not taken.
✓ Branch 24 taken 1 times.
✗ Branch 25 not taken.
✗ Branch 26 not taken.
✗ Branch 27 not taken.
✓ Branch 29 taken 1 times.
✗ Branch 30 not taken.
✓ Branch 31 taken 1 times.
✗ Branch 32 not taken.
✗ Branch 33 not taken.
✗ Branch 34 not taken.
✓ Branch 36 taken 1 times.
✗ Branch 37 not taken.
✓ Branch 38 taken 1 times.
✗ Branch 39 not taken.
✗ Branch 40 not taken.
✗ Branch 41 not taken.
✓ Branch 43 taken 1 times.
✗ Branch 44 not taken.
✓ Branch 45 taken 1 times.
✗ Branch 46 not taken.
✗ Branch 47 not taken.
✗ Branch 48 not taken.
✓ Branch 50 taken 1 times.
✗ Branch 51 not taken.
✓ Branch 52 taken 1 times.
✗ Branch 53 not taken.
✗ Branch 54 not taken.
✗ Branch 55 not taken.
✓ Branch 57 taken 1 times.
✗ Branch 58 not taken.
✓ Branch 59 taken 1 times.
✗ Branch 60 not taken.
✗ Branch 61 not taken.
✗ Branch 62 not taken.
✓ Branch 64 taken 1 times.
✗ Branch 65 not taken.
✓ Branch 66 taken 1 times.
✗ Branch 67 not taken.
✗ Branch 68 not taken.
✗ Branch 69 not taken.
✓ Branch 71 taken 1 times.
✗ Branch 72 not taken.
✓ Branch 73 taken 1 times.
✗ Branch 74 not taken.
✗ Branch 75 not taken.
✗ Branch 76 not taken.
✓ Branch 78 taken 1 times.
✗ Branch 79 not taken.
✗ Branch 80 not taken.
✓ Branch 81 taken 1 times.
✗ Branch 82 not taken.
✗ Branch 83 not taken.
✓ Branch 85 taken 1 times.
✗ Branch 86 not taken.
✓ Branch 87 taken 1 times.
✗ Branch 88 not taken.
✗ Branch 89 not taken.
✗ Branch 90 not taken.
✓ Branch 92 taken 1 times.
✗ Branch 93 not taken.
✓ Branch 94 taken 1 times.
✗ Branch 95 not taken.
✗ Branch 96 not taken.
✗ Branch 97 not taken.
✓ Branch 99 taken 1 times.
✗ Branch 100 not taken.
✓ Branch 101 taken 1 times.
✗ Branch 102 not taken.
✗ Branch 103 not taken.
✗ Branch 104 not taken.
✓ Branch 106 taken 1 times.
✗ Branch 107 not taken.
✓ Branch 108 taken 1 times.
✗ Branch 109 not taken.
✗ Branch 110 not taken.
✗ Branch 111 not taken.
✓ Branch 113 taken 1 times.
✗ Branch 114 not taken.
✓ Branch 115 taken 1 times.
✗ Branch 116 not taken.
✗ Branch 117 not taken.
✗ Branch 118 not taken.
✓ Branch 120 taken 1 times.
✗ Branch 121 not taken.
✓ Branch 122 taken 1 times.
✗ Branch 123 not taken.
✗ Branch 124 not taken.
✗ Branch 125 not taken.
✓ Branch 127 taken 1 times.
✗ Branch 128 not taken.
✓ Branch 129 taken 1 times.
✗ Branch 130 not taken.
✗ Branch 131 not taken.
✗ Branch 132 not taken.
✓ Branch 134 taken 1 times.
✗ Branch 135 not taken.
✓ Branch 136 taken 1 times.
✗ Branch 137 not taken.
✗ Branch 138 not taken.
✗ Branch 139 not taken.
✓ Branch 141 taken 1 times.
✗ Branch 142 not taken.
✓ Branch 143 taken 1 times.
✗ Branch 144 not taken.
✗ Branch 145 not taken.
✗ Branch 146 not taken.
✓ Branch 148 taken 1 times.
✗ Branch 149 not taken.
✓ Branch 150 taken 1 times.
✗ Branch 151 not taken.
✗ Branch 152 not taken.
✗ Branch 153 not taken.
✓ Branch 155 taken 1 times.
✗ Branch 156 not taken.
✓ Branch 157 taken 1 times.
✗ Branch 158 not taken.
✗ Branch 159 not taken.
✗ Branch 160 not taken.
✓ Branch 162 taken 1 times.
✗ Branch 163 not taken.
✓ Branch 164 taken 1 times.
✗ Branch 165 not taken.
✗ Branch 166 not taken.
✗ Branch 167 not taken.
✓ Branch 169 taken 1 times.
✗ Branch 170 not taken.
✓ Branch 171 taken 1 times.
✗ Branch 172 not taken.
✗ Branch 173 not taken.
✗ Branch 174 not taken.
✓ Branch 176 taken 1 times.
✗ Branch 177 not taken.
✓ Branch 178 taken 1 times.
✗ Branch 179 not taken.
✗ Branch 180 not taken.
✗ Branch 181 not taken.
✓ Branch 183 taken 1 times.
✗ Branch 184 not taken.
✓ Branch 185 taken 1 times.
✗ Branch 186 not taken.
✗ Branch 187 not taken.
✗ Branch 188 not taken.
✓ Branch 190 taken 1 times.
✗ Branch 191 not taken.
✓ Branch 192 taken 1 times.
✗ Branch 193 not taken.
✗ Branch 194 not taken.
✗ Branch 195 not taken.
✓ Branch 197 taken 1 times.
✗ Branch 198 not taken.
✓ Branch 199 taken 1 times.
✗ Branch 200 not taken.
✗ Branch 201 not taken.
✗ Branch 202 not taken.
✓ Branch 204 taken 1 times.
✗ Branch 205 not taken.
✓ Branch 206 taken 1 times.
✗ Branch 207 not taken.
✗ Branch 208 not taken.
✗ Branch 209 not taken.
✓ Branch 211 taken 1 times.
✗ Branch 212 not taken.
✓ Branch 213 taken 1 times.
✗ Branch 214 not taken.
✗ Branch 215 not taken.
✗ Branch 216 not taken.
✓ Branch 218 taken 1 times.
✗ Branch 219 not taken.
✓ Branch 220 taken 1 times.
✗ Branch 221 not taken.
✗ Branch 222 not taken.
✗ Branch 223 not taken.
✓ Branch 225 taken 1 times.
✗ Branch 226 not taken.
✓ Branch 227 taken 1 times.
✗ Branch 228 not taken.
✗ Branch 229 not taken.
✗ Branch 230 not taken.
✓ Branch 232 taken 1 times.
✗ Branch 233 not taken.
✓ Branch 234 taken 1 times.
✗ Branch 235 not taken.
✗ Branch 236 not taken.
✗ Branch 237 not taken.
✓ Branch 239 taken 1 times.
✗ Branch 240 not taken.
✓ Branch 241 taken 1 times.
✗ Branch 242 not taken.
✗ Branch 243 not taken.
✗ Branch 244 not taken.
✓ Branch 246 taken 1 times.
✗ Branch 247 not taken.
✓ Branch 248 taken 1 times.
✗ Branch 249 not taken.
✗ Branch 250 not taken.
✗ Branch 251 not taken.
✓ Branch 253 taken 1 times.
✗ Branch 254 not taken.
✓ Branch 255 taken 1 times.
✗ Branch 256 not taken.
✗ Branch 257 not taken.
✗ Branch 258 not taken.
✓ Branch 260 taken 1 times.
✗ Branch 261 not taken.
✓ Branch 262 taken 1 times.
✗ Branch 263 not taken.
✗ Branch 264 not taken.
✗ Branch 265 not taken.
✓ Branch 267 taken 1 times.
✗ Branch 268 not taken.
✓ Branch 269 taken 1 times.
✗ Branch 270 not taken.
✗ Branch 271 not taken.
✗ Branch 272 not taken.
✓ Branch 274 taken 1 times.
✗ Branch 275 not taken.
✓ Branch 276 taken 1 times.
✗ Branch 277 not taken.
✗ Branch 278 not taken.
✗ Branch 279 not taken.
✓ Branch 281 taken 1 times.
✗ Branch 282 not taken.
✓ Branch 283 taken 1 times.
✗ Branch 284 not taken.
✗ Branch 285 not taken.
✗ Branch 286 not taken.
✓ Branch 288 taken 1 times.
✗ Branch 289 not taken.
✓ Branch 290 taken 1 times.
✗ Branch 291 not taken.
✗ Branch 292 not taken.
✗ Branch 293 not taken.
✓ Branch 295 taken 1 times.
✗ Branch 296 not taken.
✓ Branch 297 taken 1 times.
✗ Branch 298 not taken.
✗ Branch 299 not taken.
✗ Branch 300 not taken.
✓ Branch 302 taken 1 times.
✗ Branch 303 not taken.
✓ Branch 304 taken 1 times.
✗ Branch 305 not taken.
✗ Branch 306 not taken.
✗ Branch 307 not taken.
✓ Branch 309 taken 1 times.
✗ Branch 310 not taken.
✓ Branch 311 taken 1 times.
✗ Branch 312 not taken.
✗ Branch 313 not taken.
✗ Branch 314 not taken.
✓ Branch 316 taken 1 times.
✗ Branch 317 not taken.
✓ Branch 318 taken 1 times.
✗ Branch 319 not taken.
✗ Branch 320 not taken.
✗ Branch 321 not taken.
✓ Branch 323 taken 1 times.
✗ Branch 324 not taken.
✓ Branch 325 taken 1 times.
✗ Branch 326 not taken.
✗ Branch 327 not taken.
✗ Branch 328 not taken.
✓ Branch 330 taken 1 times.
✗ Branch 331 not taken.
✓ Branch 332 taken 1 times.
✗ Branch 333 not taken.
✗ Branch 334 not taken.
✗ Branch 335 not taken.
✓ Branch 337 taken 1 times.
✗ Branch 338 not taken.
✓ Branch 339 taken 1 times.
✗ Branch 340 not taken.
✗ Branch 341 not taken.
✗ Branch 342 not taken.
✓ Branch 344 taken 1 times.
✗ Branch 345 not taken.
✓ Branch 346 taken 1 times.
✗ Branch 347 not taken.
✗ Branch 348 not taken.
✗ Branch 349 not taken.
✓ Branch 351 taken 1 times.
✗ Branch 352 not taken.
✓ Branch 353 taken 1 times.
✗ Branch 354 not taken.
✗ Branch 355 not taken.
✗ Branch 356 not taken.
✓ Branch 358 taken 1 times.
✗ Branch 359 not taken.
✓ Branch 360 taken 1 times.
✗ Branch 361 not taken.
✗ Branch 362 not taken.
✗ Branch 363 not taken.
✓ Branch 365 taken 1 times.
✗ Branch 366 not taken.
✓ Branch 367 taken 1 times.
✗ Branch 368 not taken.
✗ Branch 369 not taken.
✗ Branch 370 not taken.
✓ Branch 372 taken 1 times.
✗ Branch 373 not taken.
✓ Branch 374 taken 1 times.
✗ Branch 375 not taken.
✗ Branch 376 not taken.
✗ Branch 377 not taken.
✓ Branch 379 taken 1 times.
✗ Branch 380 not taken.
✓ Branch 381 taken 1 times.
✗ Branch 382 not taken.
✗ Branch 383 not taken.
✗ Branch 384 not taken.
✓ Branch 386 taken 1 times.
✗ Branch 387 not taken.
✓ Branch 388 taken 1 times.
✗ Branch 389 not taken.
✗ Branch 390 not taken.
✗ Branch 391 not taken.
✓ Branch 393 taken 1 times.
✗ Branch 394 not taken.
✓ Branch 395 taken 1 times.
✗ Branch 396 not taken.
✗ Branch 397 not taken.
✗ Branch 398 not taken.
✓ Branch 400 taken 1 times.
✗ Branch 401 not taken.
✓ Branch 402 taken 1 times.
✗ Branch 403 not taken.
✗ Branch 404 not taken.
✗ Branch 405 not taken.
✓ Branch 407 taken 1 times.
✗ Branch 408 not taken.
✓ Branch 409 taken 1 times.
✗ Branch 410 not taken.
✗ Branch 411 not taken.
✗ Branch 412 not taken.
✓ Branch 414 taken 1 times.
✗ Branch 415 not taken.
✓ Branch 416 taken 1 times.
✗ Branch 417 not taken.
✗ Branch 418 not taken.
✗ Branch 419 not taken.
✓ Branch 421 taken 1 times.
✗ Branch 422 not taken.
✓ Branch 423 taken 1 times.
✗ Branch 424 not taken.
✗ Branch 425 not taken.
✗ Branch 426 not taken.
✓ Branch 428 taken 1 times.
✗ Branch 429 not taken.
✓ Branch 430 taken 1 times.
✗ Branch 431 not taken.
✗ Branch 432 not taken.
✗ Branch 433 not taken.
✓ Branch 435 taken 1 times.
✗ Branch 436 not taken.
✓ Branch 437 taken 1 times.
✗ Branch 438 not taken.
✗ Branch 439 not taken.
✗ Branch 440 not taken.
✓ Branch 442 taken 1 times.
✗ Branch 443 not taken.
✓ Branch 444 taken 1 times.
✗ Branch 445 not taken.
✗ Branch 446 not taken.
✗ Branch 447 not taken.
✓ Branch 449 taken 1 times.
✗ Branch 450 not taken.
✓ Branch 451 taken 1 times.
✗ Branch 452 not taken.
✗ Branch 453 not taken.
✗ Branch 454 not taken.
✓ Branch 456 taken 1 times.
✗ Branch 457 not taken.
✓ Branch 458 taken 1 times.
✗ Branch 459 not taken.
✗ Branch 460 not taken.
✗ Branch 461 not taken.
✓ Branch 463 taken 1 times.
✗ Branch 464 not taken.
✓ Branch 465 taken 1 times.
✗ Branch 466 not taken.
✗ Branch 467 not taken.
✗ Branch 468 not taken.
✓ Branch 470 taken 1 times.
✗ Branch 471 not taken.
✓ Branch 472 taken 1 times.
✗ Branch 473 not taken.
✗ Branch 474 not taken.
✗ Branch 475 not taken.
✓ Branch 477 taken 1 times.
✗ Branch 478 not taken.
✓ Branch 479 taken 1 times.
✗ Branch 480 not taken.
✗ Branch 481 not taken.
✗ Branch 482 not taken.
✓ Branch 484 taken 1 times.
✗ Branch 485 not taken.
✓ Branch 486 taken 1 times.
✗ Branch 487 not taken.
✗ Branch 488 not taken.
✗ Branch 489 not taken.
✓ Branch 491 taken 1 times.
✗ Branch 492 not taken.
✓ Branch 493 taken 1 times.
✗ Branch 494 not taken.
✗ Branch 495 not taken.
✗ Branch 496 not taken.
✓ Branch 498 taken 1 times.
✗ Branch 499 not taken.
✓ Branch 500 taken 1 times.
✗ Branch 501 not taken.
✗ Branch 502 not taken.
✗ Branch 503 not taken.
✓ Branch 505 taken 1 times.
✗ Branch 506 not taken.
✓ Branch 507 taken 1 times.
✗ Branch 508 not taken.
✗ Branch 509 not taken.
✗ Branch 510 not taken.
✓ Branch 512 taken 1 times.
✗ Branch 513 not taken.
✓ Branch 514 taken 1 times.
✗ Branch 515 not taken.
✗ Branch 516 not taken.
✗ Branch 517 not taken.
✓ Branch 519 taken 1 times.
✗ Branch 520 not taken.
✓ Branch 521 taken 1 times.
✗ Branch 522 not taken.
✗ Branch 523 not taken.
✗ Branch 524 not taken.
✓ Branch 526 taken 1 times.
✗ Branch 527 not taken.
✓ Branch 528 taken 1 times.
✗ Branch 529 not taken.
✗ Branch 530 not taken.
✗ Branch 531 not taken.
✓ Branch 533 taken 1 times.
✗ Branch 534 not taken.
✓ Branch 535 taken 1 times.
✗ Branch 536 not taken.
✗ Branch 537 not taken.
✗ Branch 538 not taken.
✓ Branch 540 taken 1 times.
✗ Branch 541 not taken.
✓ Branch 542 taken 1 times.
✗ Branch 543 not taken.
✗ Branch 544 not taken.
✗ Branch 545 not taken.
✓ Branch 547 taken 1 times.
✗ Branch 548 not taken.
✓ Branch 549 taken 1 times.
✗ Branch 550 not taken.
✗ Branch 551 not taken.
✗ Branch 552 not taken.
✓ Branch 554 taken 1 times.
✗ Branch 555 not taken.
✓ Branch 556 taken 1 times.
✗ Branch 557 not taken.
✗ Branch 558 not taken.
✗ Branch 559 not taken.
✓ Branch 561 taken 1 times.
✗ Branch 562 not taken.
✓ Branch 563 taken 1 times.
✗ Branch 564 not taken.
✗ Branch 565 not taken.
✗ Branch 566 not taken.
✓ Branch 568 taken 1 times.
✗ Branch 569 not taken.
✓ Branch 570 taken 1 times.
✗ Branch 571 not taken.
✗ Branch 572 not taken.
✗ Branch 573 not taken.
✓ Branch 575 taken 1 times.
✗ Branch 576 not taken.
✓ Branch 577 taken 1 times.
✗ Branch 578 not taken.
✗ Branch 579 not taken.
✗ Branch 580 not taken.
✓ Branch 582 taken 1 times.
✗ Branch 583 not taken.
✓ Branch 584 taken 1 times.
✗ Branch 585 not taken.
✗ Branch 586 not taken.
✗ Branch 587 not taken.
✓ Branch 589 taken 1 times.
✗ Branch 590 not taken.
✓ Branch 591 taken 1 times.
✗ Branch 592 not taken.
✗ Branch 593 not taken.
✗ Branch 594 not taken.
✓ Branch 596 taken 1 times.
✗ Branch 597 not taken.
✓ Branch 598 taken 1 times.
✗ Branch 599 not taken.
✗ Branch 600 not taken.
✗ Branch 601 not taken.
✓ Branch 603 taken 1 times.
✗ Branch 604 not taken.
✗ Branch 605 not taken.
✓ Branch 606 taken 1 times.
✗ Branch 607 not taken.
✗ Branch 608 not taken.
✓ Branch 610 taken 1 times.
✗ Branch 611 not taken.
✓ Branch 612 taken 1 times.
✗ Branch 613 not taken.
✗ Branch 614 not taken.
✗ Branch 615 not taken.
✓ Branch 617 taken 1 times.
✗ Branch 618 not taken.
✓ Branch 619 taken 1 times.
✗ Branch 620 not taken.
✗ Branch 621 not taken.
✗ Branch 622 not taken.
✓ Branch 624 taken 1 times.
✗ Branch 625 not taken.
✓ Branch 626 taken 1 times.
✗ Branch 627 not taken.
✗ Branch 628 not taken.
✗ Branch 629 not taken.
✓ Branch 631 taken 1 times.
✗ Branch 632 not taken.
✓ Branch 633 taken 1 times.
✗ Branch 634 not taken.
✗ Branch 635 not taken.
✗ Branch 636 not taken.
✓ Branch 638 taken 1 times.
✗ Branch 639 not taken.
✗ Branch 640 not taken.
✓ Branch 641 taken 1 times.
✗ Branch 642 not taken.
✗ Branch 643 not taken.
✓ Branch 645 taken 1 times.
✗ Branch 646 not taken.
✓ Branch 647 taken 1 times.
✗ Branch 648 not taken.
✗ Branch 649 not taken.
✗ Branch 650 not taken.
✓ Branch 652 taken 1 times.
✗ Branch 653 not taken.
✓ Branch 654 taken 1 times.
✗ Branch 655 not taken.
✗ Branch 656 not taken.
✗ Branch 657 not taken.
✓ Branch 659 taken 1 times.
✗ Branch 660 not taken.
✓ Branch 661 taken 1 times.
✗ Branch 662 not taken.
✗ Branch 663 not taken.
✗ Branch 664 not taken.
✓ Branch 666 taken 1 times.
✗ Branch 667 not taken.
✓ Branch 668 taken 1 times.
✗ Branch 669 not taken.
✗ Branch 670 not taken.
✗ Branch 671 not taken.
✓ Branch 673 taken 1 times.
✗ Branch 674 not taken.
✓ Branch 675 taken 1 times.
✗ Branch 676 not taken.
✗ Branch 677 not taken.
✗ Branch 678 not taken.
✓ Branch 680 taken 1 times.
✗ Branch 681 not taken.
✓ Branch 682 taken 1 times.
✗ Branch 683 not taken.
✗ Branch 684 not taken.
✗ Branch 685 not taken.
✓ Branch 687 taken 1 times.
✗ Branch 688 not taken.
✗ Branch 689 not taken.
✓ Branch 690 taken 1 times.
✗ Branch 691 not taken.
✗ Branch 692 not taken.
✓ Branch 694 taken 1 times.
✗ Branch 695 not taken.
✓ Branch 696 taken 1 times.
✗ Branch 697 not taken.
✗ Branch 698 not taken.
✗ Branch 699 not taken.
✓ Branch 701 taken 1 times.
✗ Branch 702 not taken.
✓ Branch 703 taken 1 times.
✗ Branch 704 not taken.
✗ Branch 705 not taken.
✗ Branch 706 not taken.
✓ Branch 708 taken 1 times.
✗ Branch 709 not taken.
✓ Branch 710 taken 1 times.
✗ Branch 711 not taken.
✗ Branch 712 not taken.
✗ Branch 713 not taken.
✓ Branch 715 taken 1 times.
✗ Branch 716 not taken.
✓ Branch 717 taken 1 times.
✗ Branch 718 not taken.
✗ Branch 719 not taken.
✗ Branch 720 not taken.
✓ Branch 722 taken 1 times.
✗ Branch 723 not taken.
✓ Branch 724 taken 1 times.
✗ Branch 725 not taken.
✗ Branch 726 not taken.
✗ Branch 727 not taken.
✓ Branch 729 taken 1 times.
✗ Branch 730 not taken.
✓ Branch 731 taken 1 times.
✗ Branch 732 not taken.
✗ Branch 733 not taken.
✗ Branch 734 not taken.
✓ Branch 736 taken 1 times.
✗ Branch 737 not taken.
✓ Branch 738 taken 1 times.
✗ Branch 739 not taken.
✗ Branch 740 not taken.
✗ Branch 741 not taken.
✓ Branch 743 taken 1 times.
✗ Branch 744 not taken.
✓ Branch 745 taken 1 times.
✗ Branch 746 not taken.
✗ Branch 747 not taken.
✗ Branch 748 not taken.
✓ Branch 750 taken 1 times.
✗ Branch 751 not taken.
✓ Branch 752 taken 1 times.
✗ Branch 753 not taken.
✗ Branch 754 not taken.
✗ Branch 755 not taken.
✓ Branch 757 taken 1 times.
✗ Branch 758 not taken.
✓ Branch 759 taken 1 times.
✗ Branch 760 not taken.
✗ Branch 761 not taken.
✗ Branch 762 not taken.
✓ Branch 764 taken 1 times.
✗ Branch 765 not taken.
✓ Branch 766 taken 1 times.
✗ Branch 767 not taken.
✗ Branch 768 not taken.
✗ Branch 769 not taken.
✓ Branch 771 taken 1 times.
✗ Branch 772 not taken.
✓ Branch 773 taken 1 times.
✗ Branch 774 not taken.
✗ Branch 775 not taken.
✗ Branch 776 not taken.
✓ Branch 778 taken 1 times.
✗ Branch 779 not taken.
✓ Branch 780 taken 1 times.
✗ Branch 781 not taken.
✗ Branch 782 not taken.
✗ Branch 783 not taken.
✓ Branch 785 taken 1 times.
✗ Branch 786 not taken.
✓ Branch 787 taken 1 times.
✗ Branch 788 not taken.
✗ Branch 789 not taken.
✗ Branch 790 not taken.
✓ Branch 792 taken 1 times.
✗ Branch 793 not taken.
✓ Branch 794 taken 1 times.
✗ Branch 795 not taken.
✗ Branch 796 not taken.
✗ Branch 797 not taken.
✓ Branch 799 taken 1 times.
✗ Branch 800 not taken.
✓ Branch 801 taken 1 times.
✗ Branch 802 not taken.
✗ Branch 803 not taken.
✗ Branch 804 not taken.
✓ Branch 806 taken 1 times.
✗ Branch 807 not taken.
✓ Branch 808 taken 1 times.
✗ Branch 809 not taken.
✗ Branch 810 not taken.
✗ Branch 811 not taken.
✓ Branch 813 taken 1 times.
✗ Branch 814 not taken.
✓ Branch 815 taken 1 times.
✗ Branch 816 not taken.
✗ Branch 817 not taken.
✗ Branch 818 not taken.
✓ Branch 820 taken 1 times.
✗ Branch 821 not taken.
✓ Branch 822 taken 1 times.
✗ Branch 823 not taken.
✗ Branch 824 not taken.
✗ Branch 825 not taken.
✓ Branch 827 taken 1 times.
✗ Branch 828 not taken.
✓ Branch 829 taken 1 times.
✗ Branch 830 not taken.
✗ Branch 831 not taken.
✗ Branch 832 not taken.
1286 yLabel_ = label;
280 }
281
282 /*!
283 * \brief Sets the range for the x-axis
284 *
285 * \param min The lowest plotted value for the x-axis
286 * \param max The highest plotted value for the x-axis
287 */
288 void setXRange(Scalar min, Scalar max)
289 {
290 1054 xRangeMin_ = min;
291 1054 xRangeMax_ = max;
292
120/239
✓ Branch 1 taken 2 times.
✓ Branch 2 taken 931 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 1 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 1 times.
✗ Branch 11 not taken.
✓ Branch 13 taken 1 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 1 times.
✗ Branch 17 not taken.
✓ Branch 19 taken 1 times.
✗ Branch 20 not taken.
✓ Branch 22 taken 1 times.
✗ Branch 23 not taken.
✓ Branch 25 taken 1 times.
✗ Branch 26 not taken.
✓ Branch 28 taken 1 times.
✗ Branch 29 not taken.
✓ Branch 31 taken 1 times.
✗ Branch 32 not taken.
✓ Branch 34 taken 1 times.
✗ Branch 35 not taken.
✓ Branch 37 taken 1 times.
✗ Branch 38 not taken.
✓ Branch 40 taken 1 times.
✗ Branch 41 not taken.
✓ Branch 43 taken 1 times.
✗ Branch 44 not taken.
✓ Branch 46 taken 1 times.
✗ Branch 47 not taken.
✓ Branch 49 taken 1 times.
✗ Branch 50 not taken.
✓ Branch 52 taken 1 times.
✗ Branch 53 not taken.
✓ Branch 55 taken 1 times.
✗ Branch 56 not taken.
✓ Branch 58 taken 1 times.
✗ Branch 59 not taken.
✓ Branch 61 taken 1 times.
✗ Branch 62 not taken.
✓ Branch 64 taken 1 times.
✗ Branch 65 not taken.
✓ Branch 67 taken 1 times.
✗ Branch 68 not taken.
✓ Branch 70 taken 1 times.
✗ Branch 71 not taken.
✓ Branch 73 taken 1 times.
✗ Branch 74 not taken.
✓ Branch 76 taken 1 times.
✗ Branch 77 not taken.
✓ Branch 79 taken 1 times.
✗ Branch 80 not taken.
✓ Branch 82 taken 1 times.
✗ Branch 83 not taken.
✓ Branch 85 taken 1 times.
✗ Branch 86 not taken.
✓ Branch 88 taken 1 times.
✗ Branch 89 not taken.
✓ Branch 91 taken 1 times.
✗ Branch 92 not taken.
✓ Branch 94 taken 1 times.
✗ Branch 95 not taken.
✓ Branch 97 taken 1 times.
✗ Branch 98 not taken.
✓ Branch 100 taken 1 times.
✗ Branch 101 not taken.
✓ Branch 103 taken 1 times.
✗ Branch 104 not taken.
✓ Branch 106 taken 1 times.
✗ Branch 107 not taken.
✓ Branch 109 taken 1 times.
✗ Branch 110 not taken.
✓ Branch 112 taken 1 times.
✗ Branch 113 not taken.
✓ Branch 115 taken 1 times.
✗ Branch 116 not taken.
✓ Branch 118 taken 1 times.
✗ Branch 119 not taken.
✓ Branch 121 taken 1 times.
✗ Branch 122 not taken.
✓ Branch 124 taken 1 times.
✗ Branch 125 not taken.
✓ Branch 127 taken 1 times.
✗ Branch 128 not taken.
✓ Branch 130 taken 1 times.
✗ Branch 131 not taken.
✓ Branch 133 taken 1 times.
✗ Branch 134 not taken.
✓ Branch 136 taken 1 times.
✗ Branch 137 not taken.
✓ Branch 139 taken 1 times.
✗ Branch 140 not taken.
✓ Branch 142 taken 1 times.
✗ Branch 143 not taken.
✓ Branch 145 taken 1 times.
✗ Branch 146 not taken.
✓ Branch 148 taken 1 times.
✗ Branch 149 not taken.
✓ Branch 151 taken 1 times.
✗ Branch 152 not taken.
✓ Branch 154 taken 1 times.
✗ Branch 155 not taken.
✓ Branch 157 taken 1 times.
✗ Branch 158 not taken.
✓ Branch 160 taken 1 times.
✗ Branch 161 not taken.
✓ Branch 163 taken 1 times.
✗ Branch 164 not taken.
✓ Branch 166 taken 1 times.
✗ Branch 167 not taken.
✓ Branch 169 taken 1 times.
✗ Branch 170 not taken.
✓ Branch 172 taken 1 times.
✗ Branch 173 not taken.
✓ Branch 175 taken 1 times.
✗ Branch 176 not taken.
✓ Branch 178 taken 1 times.
✗ Branch 179 not taken.
✓ Branch 181 taken 1 times.
✗ Branch 182 not taken.
✓ Branch 184 taken 1 times.
✗ Branch 185 not taken.
✓ Branch 187 taken 1 times.
✗ Branch 188 not taken.
✓ Branch 190 taken 1 times.
✗ Branch 191 not taken.
✓ Branch 193 taken 1 times.
✗ Branch 194 not taken.
✓ Branch 196 taken 1 times.
✗ Branch 197 not taken.
✓ Branch 199 taken 1 times.
✗ Branch 200 not taken.
✓ Branch 202 taken 1 times.
✗ Branch 203 not taken.
✓ Branch 205 taken 1 times.
✗ Branch 206 not taken.
✓ Branch 208 taken 1 times.
✗ Branch 209 not taken.
✓ Branch 211 taken 1 times.
✗ Branch 212 not taken.
✓ Branch 214 taken 1 times.
✗ Branch 215 not taken.
✓ Branch 217 taken 1 times.
✗ Branch 218 not taken.
✓ Branch 220 taken 1 times.
✗ Branch 221 not taken.
✓ Branch 223 taken 1 times.
✗ Branch 224 not taken.
✓ Branch 226 taken 1 times.
✗ Branch 227 not taken.
✓ Branch 229 taken 1 times.
✗ Branch 230 not taken.
✓ Branch 232 taken 1 times.
✗ Branch 233 not taken.
✓ Branch 235 taken 1 times.
✗ Branch 236 not taken.
✓ Branch 238 taken 1 times.
✗ Branch 239 not taken.
✓ Branch 241 taken 1 times.
✗ Branch 242 not taken.
✓ Branch 244 taken 1 times.
✗ Branch 245 not taken.
✓ Branch 247 taken 1 times.
✗ Branch 248 not taken.
✓ Branch 250 taken 1 times.
✗ Branch 251 not taken.
✓ Branch 253 taken 1 times.
✗ Branch 254 not taken.
✓ Branch 256 taken 1 times.
✗ Branch 257 not taken.
✓ Branch 259 taken 1 times.
✗ Branch 260 not taken.
✓ Branch 262 taken 1 times.
✗ Branch 263 not taken.
✓ Branch 265 taken 1 times.
✗ Branch 266 not taken.
✓ Branch 268 taken 1 times.
✗ Branch 269 not taken.
✓ Branch 271 taken 1 times.
✗ Branch 272 not taken.
✓ Branch 274 taken 1 times.
✗ Branch 275 not taken.
✓ Branch 277 taken 1 times.
✗ Branch 278 not taken.
✓ Branch 280 taken 1 times.
✗ Branch 281 not taken.
✓ Branch 283 taken 1 times.
✗ Branch 284 not taken.
✓ Branch 286 taken 1 times.
✗ Branch 287 not taken.
✓ Branch 289 taken 1 times.
✗ Branch 290 not taken.
✓ Branch 292 taken 1 times.
✗ Branch 293 not taken.
✓ Branch 295 taken 1 times.
✗ Branch 296 not taken.
✓ Branch 298 taken 1 times.
✗ Branch 299 not taken.
✓ Branch 301 taken 1 times.
✗ Branch 302 not taken.
✓ Branch 304 taken 1 times.
✗ Branch 305 not taken.
✓ Branch 307 taken 1 times.
✗ Branch 308 not taken.
✓ Branch 310 taken 1 times.
✗ Branch 311 not taken.
✓ Branch 313 taken 1 times.
✗ Branch 314 not taken.
✓ Branch 316 taken 1 times.
✗ Branch 317 not taken.
✓ Branch 319 taken 1 times.
✗ Branch 320 not taken.
✓ Branch 322 taken 1 times.
✗ Branch 323 not taken.
✓ Branch 325 taken 1 times.
✗ Branch 326 not taken.
✓ Branch 328 taken 1 times.
✗ Branch 329 not taken.
✓ Branch 331 taken 1 times.
✗ Branch 332 not taken.
✓ Branch 334 taken 1 times.
✗ Branch 335 not taken.
✓ Branch 337 taken 1 times.
✗ Branch 338 not taken.
✓ Branch 340 taken 1 times.
✗ Branch 341 not taken.
✓ Branch 343 taken 1 times.
✗ Branch 344 not taken.
✓ Branch 346 taken 1 times.
✗ Branch 347 not taken.
✓ Branch 349 taken 1 times.
✗ Branch 350 not taken.
✓ Branch 352 taken 1 times.
✗ Branch 353 not taken.
✓ Branch 355 taken 1 times.
✗ Branch 356 not taken.
1054 xRangeIsSet_ = true;
293 }
294
295 /*!
296 * \brief Sets the range for the y-axis
297 *
298 * \param min The lowest plotted value for the y-axis
299 * \param max The highest plotted value for the y-axis
300 */
301 void setYRange(Scalar min, Scalar max)
302 {
303 123 yRangeMin_ = min;
304 123 yRangeMax_ = max;
305
119/238
✓ Branch 1 taken 2 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 1 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 1 times.
✗ Branch 11 not taken.
✓ Branch 13 taken 1 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 1 times.
✗ Branch 17 not taken.
✓ Branch 19 taken 1 times.
✗ Branch 20 not taken.
✓ Branch 22 taken 1 times.
✗ Branch 23 not taken.
✓ Branch 25 taken 1 times.
✗ Branch 26 not taken.
✓ Branch 28 taken 1 times.
✗ Branch 29 not taken.
✓ Branch 31 taken 1 times.
✗ Branch 32 not taken.
✓ Branch 34 taken 1 times.
✗ Branch 35 not taken.
✓ Branch 37 taken 1 times.
✗ Branch 38 not taken.
✓ Branch 40 taken 1 times.
✗ Branch 41 not taken.
✓ Branch 43 taken 1 times.
✗ Branch 44 not taken.
✓ Branch 46 taken 1 times.
✗ Branch 47 not taken.
✓ Branch 49 taken 1 times.
✗ Branch 50 not taken.
✓ Branch 52 taken 1 times.
✗ Branch 53 not taken.
✓ Branch 55 taken 1 times.
✗ Branch 56 not taken.
✓ Branch 58 taken 1 times.
✗ Branch 59 not taken.
✓ Branch 61 taken 1 times.
✗ Branch 62 not taken.
✓ Branch 64 taken 1 times.
✗ Branch 65 not taken.
✓ Branch 67 taken 1 times.
✗ Branch 68 not taken.
✓ Branch 70 taken 1 times.
✗ Branch 71 not taken.
✓ Branch 73 taken 1 times.
✗ Branch 74 not taken.
✓ Branch 76 taken 1 times.
✗ Branch 77 not taken.
✓ Branch 79 taken 1 times.
✗ Branch 80 not taken.
✓ Branch 82 taken 1 times.
✗ Branch 83 not taken.
✓ Branch 85 taken 1 times.
✗ Branch 86 not taken.
✓ Branch 88 taken 1 times.
✗ Branch 89 not taken.
✓ Branch 91 taken 1 times.
✗ Branch 92 not taken.
✓ Branch 94 taken 1 times.
✗ Branch 95 not taken.
✓ Branch 97 taken 1 times.
✗ Branch 98 not taken.
✓ Branch 100 taken 1 times.
✗ Branch 101 not taken.
✓ Branch 103 taken 1 times.
✗ Branch 104 not taken.
✓ Branch 106 taken 1 times.
✗ Branch 107 not taken.
✓ Branch 109 taken 1 times.
✗ Branch 110 not taken.
✓ Branch 112 taken 1 times.
✗ Branch 113 not taken.
✓ Branch 115 taken 1 times.
✗ Branch 116 not taken.
✓ Branch 118 taken 1 times.
✗ Branch 119 not taken.
✓ Branch 121 taken 1 times.
✗ Branch 122 not taken.
✓ Branch 124 taken 1 times.
✗ Branch 125 not taken.
✓ Branch 127 taken 1 times.
✗ Branch 128 not taken.
✓ Branch 130 taken 1 times.
✗ Branch 131 not taken.
✓ Branch 133 taken 1 times.
✗ Branch 134 not taken.
✓ Branch 136 taken 1 times.
✗ Branch 137 not taken.
✓ Branch 139 taken 1 times.
✗ Branch 140 not taken.
✓ Branch 142 taken 1 times.
✗ Branch 143 not taken.
✓ Branch 145 taken 1 times.
✗ Branch 146 not taken.
✓ Branch 148 taken 1 times.
✗ Branch 149 not taken.
✓ Branch 151 taken 1 times.
✗ Branch 152 not taken.
✓ Branch 154 taken 1 times.
✗ Branch 155 not taken.
✓ Branch 157 taken 1 times.
✗ Branch 158 not taken.
✓ Branch 160 taken 1 times.
✗ Branch 161 not taken.
✓ Branch 163 taken 1 times.
✗ Branch 164 not taken.
✓ Branch 166 taken 1 times.
✗ Branch 167 not taken.
✓ Branch 169 taken 1 times.
✗ Branch 170 not taken.
✓ Branch 172 taken 1 times.
✗ Branch 173 not taken.
✓ Branch 175 taken 1 times.
✗ Branch 176 not taken.
✓ Branch 178 taken 1 times.
✗ Branch 179 not taken.
✓ Branch 181 taken 1 times.
✗ Branch 182 not taken.
✓ Branch 184 taken 1 times.
✗ Branch 185 not taken.
✓ Branch 187 taken 1 times.
✗ Branch 188 not taken.
✓ Branch 190 taken 1 times.
✗ Branch 191 not taken.
✓ Branch 193 taken 1 times.
✗ Branch 194 not taken.
✓ Branch 196 taken 1 times.
✗ Branch 197 not taken.
✓ Branch 199 taken 1 times.
✗ Branch 200 not taken.
✓ Branch 202 taken 1 times.
✗ Branch 203 not taken.
✓ Branch 205 taken 1 times.
✗ Branch 206 not taken.
✓ Branch 208 taken 1 times.
✗ Branch 209 not taken.
✓ Branch 211 taken 1 times.
✗ Branch 212 not taken.
✓ Branch 214 taken 1 times.
✗ Branch 215 not taken.
✓ Branch 217 taken 1 times.
✗ Branch 218 not taken.
✓ Branch 220 taken 1 times.
✗ Branch 221 not taken.
✓ Branch 223 taken 1 times.
✗ Branch 224 not taken.
✓ Branch 226 taken 1 times.
✗ Branch 227 not taken.
✓ Branch 229 taken 1 times.
✗ Branch 230 not taken.
✓ Branch 232 taken 1 times.
✗ Branch 233 not taken.
✓ Branch 235 taken 1 times.
✗ Branch 236 not taken.
✓ Branch 238 taken 1 times.
✗ Branch 239 not taken.
✓ Branch 241 taken 1 times.
✗ Branch 242 not taken.
✓ Branch 244 taken 1 times.
✗ Branch 245 not taken.
✓ Branch 247 taken 1 times.
✗ Branch 248 not taken.
✓ Branch 250 taken 1 times.
✗ Branch 251 not taken.
✓ Branch 253 taken 1 times.
✗ Branch 254 not taken.
✓ Branch 256 taken 1 times.
✗ Branch 257 not taken.
✓ Branch 259 taken 1 times.
✗ Branch 260 not taken.
✓ Branch 262 taken 1 times.
✗ Branch 263 not taken.
✓ Branch 265 taken 1 times.
✗ Branch 266 not taken.
✓ Branch 268 taken 1 times.
✗ Branch 269 not taken.
✓ Branch 271 taken 1 times.
✗ Branch 272 not taken.
✓ Branch 274 taken 1 times.
✗ Branch 275 not taken.
✓ Branch 277 taken 1 times.
✗ Branch 278 not taken.
✓ Branch 280 taken 1 times.
✗ Branch 281 not taken.
✓ Branch 283 taken 1 times.
✗ Branch 284 not taken.
✓ Branch 286 taken 1 times.
✗ Branch 287 not taken.
✓ Branch 289 taken 1 times.
✗ Branch 290 not taken.
✓ Branch 292 taken 1 times.
✗ Branch 293 not taken.
✓ Branch 295 taken 1 times.
✗ Branch 296 not taken.
✓ Branch 298 taken 1 times.
✗ Branch 299 not taken.
✓ Branch 301 taken 1 times.
✗ Branch 302 not taken.
✓ Branch 304 taken 1 times.
✗ Branch 305 not taken.
✓ Branch 307 taken 1 times.
✗ Branch 308 not taken.
✓ Branch 310 taken 1 times.
✗ Branch 311 not taken.
✓ Branch 313 taken 1 times.
✗ Branch 314 not taken.
✓ Branch 316 taken 1 times.
✗ Branch 317 not taken.
✓ Branch 319 taken 1 times.
✗ Branch 320 not taken.
✓ Branch 322 taken 1 times.
✗ Branch 323 not taken.
✓ Branch 325 taken 1 times.
✗ Branch 326 not taken.
✓ Branch 328 taken 1 times.
✗ Branch 329 not taken.
✓ Branch 331 taken 1 times.
✗ Branch 332 not taken.
✓ Branch 334 taken 1 times.
✗ Branch 335 not taken.
✓ Branch 337 taken 1 times.
✗ Branch 338 not taken.
✓ Branch 340 taken 1 times.
✗ Branch 341 not taken.
✓ Branch 343 taken 1 times.
✗ Branch 344 not taken.
✓ Branch 346 taken 1 times.
✗ Branch 347 not taken.
✓ Branch 349 taken 1 times.
✗ Branch 350 not taken.
✓ Branch 352 taken 1 times.
✗ Branch 353 not taken.
✓ Branch 355 taken 1 times.
✗ Branch 356 not taken.
123 yRangeIsSet_ = true;
306 }
307
308 /*!
309 * \brief Sets additional user-defined options
310 *
311 * \param option Additional line of option in gnuplot language
312 */
313 1528 void setOption(const std::string& option)
314 {
315
3/6
✓ Branch 2 taken 1528 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 1311 times.
✓ Branch 5 taken 217 times.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
1528 plotOptions_ += option + "\n";
316 1528 }
317
318 /*!
319 * \brief Define whether the gnuplot window should be opened
320 *
321 * \param openPlotWindow Open gnuplot or not
322 */
323 void setOpenPlotWindow(bool openPlotWindow)
324 {
325
119/238
✓ Branch 1 taken 19 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 10 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 1 times.
✗ Branch 11 not taken.
✓ Branch 13 taken 1 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 1 times.
✗ Branch 17 not taken.
✓ Branch 19 taken 1 times.
✗ Branch 20 not taken.
✓ Branch 22 taken 1 times.
✗ Branch 23 not taken.
✓ Branch 25 taken 1 times.
✗ Branch 26 not taken.
✓ Branch 28 taken 1 times.
✗ Branch 29 not taken.
✓ Branch 31 taken 1 times.
✗ Branch 32 not taken.
✓ Branch 34 taken 1 times.
✗ Branch 35 not taken.
✓ Branch 37 taken 1 times.
✗ Branch 38 not taken.
✓ Branch 40 taken 1 times.
✗ Branch 41 not taken.
✓ Branch 43 taken 1 times.
✗ Branch 44 not taken.
✓ Branch 46 taken 1 times.
✗ Branch 47 not taken.
✓ Branch 49 taken 1 times.
✗ Branch 50 not taken.
✓ Branch 52 taken 1 times.
✗ Branch 53 not taken.
✓ Branch 55 taken 1 times.
✗ Branch 56 not taken.
✓ Branch 58 taken 1 times.
✗ Branch 59 not taken.
✓ Branch 61 taken 1 times.
✗ Branch 62 not taken.
✓ Branch 64 taken 1 times.
✗ Branch 65 not taken.
✓ Branch 67 taken 1 times.
✗ Branch 68 not taken.
✓ Branch 70 taken 1 times.
✗ Branch 71 not taken.
✓ Branch 73 taken 1 times.
✗ Branch 74 not taken.
✓ Branch 76 taken 1 times.
✗ Branch 77 not taken.
✓ Branch 79 taken 1 times.
✗ Branch 80 not taken.
✓ Branch 82 taken 1 times.
✗ Branch 83 not taken.
✓ Branch 85 taken 1 times.
✗ Branch 86 not taken.
✓ Branch 88 taken 1 times.
✗ Branch 89 not taken.
✓ Branch 91 taken 1 times.
✗ Branch 92 not taken.
✓ Branch 94 taken 1 times.
✗ Branch 95 not taken.
✓ Branch 97 taken 1 times.
✗ Branch 98 not taken.
✓ Branch 100 taken 1 times.
✗ Branch 101 not taken.
✓ Branch 103 taken 1 times.
✗ Branch 104 not taken.
✓ Branch 106 taken 1 times.
✗ Branch 107 not taken.
✓ Branch 109 taken 1 times.
✗ Branch 110 not taken.
✓ Branch 112 taken 1 times.
✗ Branch 113 not taken.
✓ Branch 115 taken 1 times.
✗ Branch 116 not taken.
✓ Branch 118 taken 1 times.
✗ Branch 119 not taken.
✓ Branch 121 taken 1 times.
✗ Branch 122 not taken.
✓ Branch 124 taken 1 times.
✗ Branch 125 not taken.
✓ Branch 127 taken 1 times.
✗ Branch 128 not taken.
✓ Branch 130 taken 1 times.
✗ Branch 131 not taken.
✓ Branch 133 taken 1 times.
✗ Branch 134 not taken.
✓ Branch 136 taken 1 times.
✗ Branch 137 not taken.
✓ Branch 139 taken 1 times.
✗ Branch 140 not taken.
✓ Branch 142 taken 1 times.
✗ Branch 143 not taken.
✓ Branch 145 taken 1 times.
✗ Branch 146 not taken.
✓ Branch 148 taken 1 times.
✗ Branch 149 not taken.
✓ Branch 151 taken 1 times.
✗ Branch 152 not taken.
✓ Branch 154 taken 1 times.
✗ Branch 155 not taken.
✓ Branch 157 taken 1 times.
✗ Branch 158 not taken.
✓ Branch 160 taken 1 times.
✗ Branch 161 not taken.
✓ Branch 163 taken 1 times.
✗ Branch 164 not taken.
✓ Branch 166 taken 1 times.
✗ Branch 167 not taken.
✓ Branch 169 taken 1 times.
✗ Branch 170 not taken.
✓ Branch 172 taken 1 times.
✗ Branch 173 not taken.
✓ Branch 175 taken 1 times.
✗ Branch 176 not taken.
✓ Branch 178 taken 1 times.
✗ Branch 179 not taken.
✓ Branch 181 taken 1 times.
✗ Branch 182 not taken.
✓ Branch 184 taken 1 times.
✗ Branch 185 not taken.
✓ Branch 187 taken 1 times.
✗ Branch 188 not taken.
✓ Branch 190 taken 1 times.
✗ Branch 191 not taken.
✓ Branch 193 taken 1 times.
✗ Branch 194 not taken.
✓ Branch 196 taken 1 times.
✗ Branch 197 not taken.
✓ Branch 199 taken 1 times.
✗ Branch 200 not taken.
✓ Branch 202 taken 1 times.
✗ Branch 203 not taken.
✓ Branch 205 taken 1 times.
✗ Branch 206 not taken.
✓ Branch 208 taken 1 times.
✗ Branch 209 not taken.
✓ Branch 211 taken 1 times.
✗ Branch 212 not taken.
✓ Branch 214 taken 1 times.
✗ Branch 215 not taken.
✓ Branch 217 taken 1 times.
✗ Branch 218 not taken.
✓ Branch 220 taken 1 times.
✗ Branch 221 not taken.
✓ Branch 223 taken 1 times.
✗ Branch 224 not taken.
✓ Branch 226 taken 1 times.
✗ Branch 227 not taken.
✓ Branch 229 taken 1 times.
✗ Branch 230 not taken.
✓ Branch 232 taken 1 times.
✗ Branch 233 not taken.
✓ Branch 235 taken 1 times.
✗ Branch 236 not taken.
✓ Branch 238 taken 1 times.
✗ Branch 239 not taken.
✓ Branch 241 taken 1 times.
✗ Branch 242 not taken.
✓ Branch 244 taken 1 times.
✗ Branch 245 not taken.
✓ Branch 247 taken 1 times.
✗ Branch 248 not taken.
✓ Branch 250 taken 1 times.
✗ Branch 251 not taken.
✓ Branch 253 taken 1 times.
✗ Branch 254 not taken.
✓ Branch 256 taken 1 times.
✗ Branch 257 not taken.
✓ Branch 259 taken 1 times.
✗ Branch 260 not taken.
✓ Branch 262 taken 1 times.
✗ Branch 263 not taken.
✓ Branch 265 taken 1 times.
✗ Branch 266 not taken.
✓ Branch 268 taken 1 times.
✗ Branch 269 not taken.
✓ Branch 271 taken 1 times.
✗ Branch 272 not taken.
✓ Branch 274 taken 1 times.
✗ Branch 275 not taken.
✓ Branch 277 taken 1 times.
✗ Branch 278 not taken.
✓ Branch 280 taken 1 times.
✗ Branch 281 not taken.
✓ Branch 283 taken 1 times.
✗ Branch 284 not taken.
✓ Branch 286 taken 1 times.
✗ Branch 287 not taken.
✓ Branch 289 taken 1 times.
✗ Branch 290 not taken.
✓ Branch 292 taken 1 times.
✗ Branch 293 not taken.
✓ Branch 295 taken 1 times.
✗ Branch 296 not taken.
✓ Branch 298 taken 1 times.
✗ Branch 299 not taken.
✓ Branch 301 taken 1 times.
✗ Branch 302 not taken.
✓ Branch 304 taken 1 times.
✗ Branch 305 not taken.
✓ Branch 307 taken 1 times.
✗ Branch 308 not taken.
✓ Branch 310 taken 1 times.
✗ Branch 311 not taken.
✓ Branch 313 taken 1 times.
✗ Branch 314 not taken.
✓ Branch 316 taken 1 times.
✗ Branch 317 not taken.
✓ Branch 319 taken 1 times.
✗ Branch 320 not taken.
✓ Branch 322 taken 1 times.
✗ Branch 323 not taken.
✓ Branch 325 taken 1 times.
✗ Branch 326 not taken.
✓ Branch 328 taken 1 times.
✗ Branch 329 not taken.
✓ Branch 331 taken 1 times.
✗ Branch 332 not taken.
✓ Branch 334 taken 1 times.
✗ Branch 335 not taken.
✓ Branch 337 taken 1 times.
✗ Branch 338 not taken.
✓ Branch 340 taken 1 times.
✗ Branch 341 not taken.
✓ Branch 343 taken 1 times.
✗ Branch 344 not taken.
✓ Branch 346 taken 1 times.
✗ Branch 347 not taken.
✓ Branch 349 taken 1 times.
✗ Branch 350 not taken.
✓ Branch 352 taken 1 times.
✗ Branch 353 not taken.
✓ Branch 355 taken 1 times.
✗ Branch 356 not taken.
150 openPlotWindow_ = openPlotWindow;
326 }
327
328 /*!
329 * \brief Define whether gnuplot should create .png files
330 *
331 * \param createImage Create an image or not
332 */
333 void setCreateImage(bool createImage)
334 {
335
119/238
✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 1 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 1 times.
✗ Branch 11 not taken.
✓ Branch 13 taken 1 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 1 times.
✗ Branch 17 not taken.
✓ Branch 19 taken 1 times.
✗ Branch 20 not taken.
✓ Branch 22 taken 1 times.
✗ Branch 23 not taken.
✓ Branch 25 taken 1 times.
✗ Branch 26 not taken.
✓ Branch 28 taken 1 times.
✗ Branch 29 not taken.
✓ Branch 31 taken 1 times.
✗ Branch 32 not taken.
✓ Branch 34 taken 1 times.
✗ Branch 35 not taken.
✓ Branch 37 taken 1 times.
✗ Branch 38 not taken.
✓ Branch 40 taken 1 times.
✗ Branch 41 not taken.
✓ Branch 43 taken 1 times.
✗ Branch 44 not taken.
✓ Branch 46 taken 1 times.
✗ Branch 47 not taken.
✓ Branch 49 taken 1 times.
✗ Branch 50 not taken.
✓ Branch 52 taken 1 times.
✗ Branch 53 not taken.
✓ Branch 55 taken 1 times.
✗ Branch 56 not taken.
✓ Branch 58 taken 1 times.
✗ Branch 59 not taken.
✓ Branch 61 taken 1 times.
✗ Branch 62 not taken.
✓ Branch 64 taken 1 times.
✗ Branch 65 not taken.
✓ Branch 67 taken 1 times.
✗ Branch 68 not taken.
✓ Branch 70 taken 1 times.
✗ Branch 71 not taken.
✓ Branch 73 taken 1 times.
✗ Branch 74 not taken.
✓ Branch 76 taken 1 times.
✗ Branch 77 not taken.
✓ Branch 79 taken 1 times.
✗ Branch 80 not taken.
✓ Branch 82 taken 1 times.
✗ Branch 83 not taken.
✓ Branch 85 taken 1 times.
✗ Branch 86 not taken.
✓ Branch 88 taken 1 times.
✗ Branch 89 not taken.
✓ Branch 91 taken 1 times.
✗ Branch 92 not taken.
✓ Branch 94 taken 1 times.
✗ Branch 95 not taken.
✓ Branch 97 taken 1 times.
✗ Branch 98 not taken.
✓ Branch 100 taken 1 times.
✗ Branch 101 not taken.
✓ Branch 103 taken 1 times.
✗ Branch 104 not taken.
✓ Branch 106 taken 1 times.
✗ Branch 107 not taken.
✓ Branch 109 taken 1 times.
✗ Branch 110 not taken.
✓ Branch 112 taken 1 times.
✗ Branch 113 not taken.
✓ Branch 115 taken 1 times.
✗ Branch 116 not taken.
✓ Branch 118 taken 1 times.
✗ Branch 119 not taken.
✓ Branch 121 taken 1 times.
✗ Branch 122 not taken.
✓ Branch 124 taken 1 times.
✗ Branch 125 not taken.
✓ Branch 127 taken 1 times.
✗ Branch 128 not taken.
✓ Branch 130 taken 1 times.
✗ Branch 131 not taken.
✓ Branch 133 taken 1 times.
✗ Branch 134 not taken.
✓ Branch 136 taken 1 times.
✗ Branch 137 not taken.
✓ Branch 139 taken 1 times.
✗ Branch 140 not taken.
✓ Branch 142 taken 1 times.
✗ Branch 143 not taken.
✓ Branch 145 taken 1 times.
✗ Branch 146 not taken.
✓ Branch 148 taken 1 times.
✗ Branch 149 not taken.
✓ Branch 151 taken 1 times.
✗ Branch 152 not taken.
✓ Branch 154 taken 1 times.
✗ Branch 155 not taken.
✓ Branch 157 taken 1 times.
✗ Branch 158 not taken.
✓ Branch 160 taken 1 times.
✗ Branch 161 not taken.
✓ Branch 163 taken 1 times.
✗ Branch 164 not taken.
✓ Branch 166 taken 1 times.
✗ Branch 167 not taken.
✓ Branch 169 taken 1 times.
✗ Branch 170 not taken.
✓ Branch 172 taken 1 times.
✗ Branch 173 not taken.
✓ Branch 175 taken 1 times.
✗ Branch 176 not taken.
✓ Branch 178 taken 1 times.
✗ Branch 179 not taken.
✓ Branch 181 taken 1 times.
✗ Branch 182 not taken.
✓ Branch 184 taken 1 times.
✗ Branch 185 not taken.
✓ Branch 187 taken 1 times.
✗ Branch 188 not taken.
✓ Branch 190 taken 1 times.
✗ Branch 191 not taken.
✓ Branch 193 taken 1 times.
✗ Branch 194 not taken.
✓ Branch 196 taken 1 times.
✗ Branch 197 not taken.
✓ Branch 199 taken 1 times.
✗ Branch 200 not taken.
✓ Branch 202 taken 1 times.
✗ Branch 203 not taken.
✓ Branch 205 taken 1 times.
✗ Branch 206 not taken.
✓ Branch 208 taken 1 times.
✗ Branch 209 not taken.
✓ Branch 211 taken 1 times.
✗ Branch 212 not taken.
✓ Branch 214 taken 1 times.
✗ Branch 215 not taken.
✓ Branch 217 taken 1 times.
✗ Branch 218 not taken.
✓ Branch 220 taken 1 times.
✗ Branch 221 not taken.
✓ Branch 223 taken 1 times.
✗ Branch 224 not taken.
✓ Branch 226 taken 1 times.
✗ Branch 227 not taken.
✓ Branch 229 taken 1 times.
✗ Branch 230 not taken.
✓ Branch 232 taken 1 times.
✗ Branch 233 not taken.
✓ Branch 235 taken 1 times.
✗ Branch 236 not taken.
✓ Branch 238 taken 1 times.
✗ Branch 239 not taken.
✓ Branch 241 taken 1 times.
✗ Branch 242 not taken.
✓ Branch 244 taken 1 times.
✗ Branch 245 not taken.
✓ Branch 247 taken 1 times.
✗ Branch 248 not taken.
✓ Branch 250 taken 1 times.
✗ Branch 251 not taken.
✓ Branch 253 taken 1 times.
✗ Branch 254 not taken.
✓ Branch 256 taken 1 times.
✗ Branch 257 not taken.
✓ Branch 259 taken 1 times.
✗ Branch 260 not taken.
✓ Branch 262 taken 1 times.
✗ Branch 263 not taken.
✓ Branch 265 taken 1 times.
✗ Branch 266 not taken.
✓ Branch 268 taken 1 times.
✗ Branch 269 not taken.
✓ Branch 271 taken 1 times.
✗ Branch 272 not taken.
✓ Branch 274 taken 1 times.
✗ Branch 275 not taken.
✓ Branch 277 taken 1 times.
✗ Branch 278 not taken.
✓ Branch 280 taken 1 times.
✗ Branch 281 not taken.
✓ Branch 283 taken 1 times.
✗ Branch 284 not taken.
✓ Branch 286 taken 1 times.
✗ Branch 287 not taken.
✓ Branch 289 taken 1 times.
✗ Branch 290 not taken.
✓ Branch 292 taken 1 times.
✗ Branch 293 not taken.
✓ Branch 295 taken 1 times.
✗ Branch 296 not taken.
✓ Branch 298 taken 1 times.
✗ Branch 299 not taken.
✓ Branch 301 taken 1 times.
✗ Branch 302 not taken.
✓ Branch 304 taken 1 times.
✗ Branch 305 not taken.
✓ Branch 307 taken 1 times.
✗ Branch 308 not taken.
✓ Branch 310 taken 1 times.
✗ Branch 311 not taken.
✓ Branch 313 taken 1 times.
✗ Branch 314 not taken.
✓ Branch 316 taken 1 times.
✗ Branch 317 not taken.
✓ Branch 319 taken 1 times.
✗ Branch 320 not taken.
✓ Branch 322 taken 1 times.
✗ Branch 323 not taken.
✓ Branch 325 taken 1 times.
✗ Branch 326 not taken.
✓ Branch 328 taken 1 times.
✗ Branch 329 not taken.
✓ Branch 331 taken 1 times.
✗ Branch 332 not taken.
✓ Branch 334 taken 1 times.
✗ Branch 335 not taken.
✓ Branch 337 taken 1 times.
✗ Branch 338 not taken.
✓ Branch 340 taken 1 times.
✗ Branch 341 not taken.
✓ Branch 343 taken 1 times.
✗ Branch 344 not taken.
✓ Branch 346 taken 1 times.
✗ Branch 347 not taken.
✓ Branch 349 taken 1 times.
✗ Branch 350 not taken.
✓ Branch 352 taken 1 times.
✗ Branch 353 not taken.
✓ Branch 355 taken 1 times.
✗ Branch 356 not taken.
119 createImage_ = createImage;
336 }
337
338 /*!
339 * \brief Sets the datafile separator
340 *
341 * \param separator The separator sign between two data columns
342 */
343 void setDatafileSeparator(char separator)
344 {
345
119/238
✓ Branch 1 taken 2 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 1 times.
✗ Branch 5 not taken.
✓ Branch 7 taken 1 times.
✗ Branch 8 not taken.
✓ Branch 10 taken 1 times.
✗ Branch 11 not taken.
✓ Branch 13 taken 1 times.
✗ Branch 14 not taken.
✓ Branch 16 taken 1 times.
✗ Branch 17 not taken.
✓ Branch 19 taken 1 times.
✗ Branch 20 not taken.
✓ Branch 22 taken 1 times.
✗ Branch 23 not taken.
✓ Branch 25 taken 1 times.
✗ Branch 26 not taken.
✓ Branch 28 taken 1 times.
✗ Branch 29 not taken.
✓ Branch 31 taken 1 times.
✗ Branch 32 not taken.
✓ Branch 34 taken 1 times.
✗ Branch 35 not taken.
✓ Branch 37 taken 1 times.
✗ Branch 38 not taken.
✓ Branch 40 taken 1 times.
✗ Branch 41 not taken.
✓ Branch 43 taken 1 times.
✗ Branch 44 not taken.
✓ Branch 46 taken 1 times.
✗ Branch 47 not taken.
✓ Branch 49 taken 1 times.
✗ Branch 50 not taken.
✓ Branch 52 taken 1 times.
✗ Branch 53 not taken.
✓ Branch 55 taken 1 times.
✗ Branch 56 not taken.
✓ Branch 58 taken 1 times.
✗ Branch 59 not taken.
✓ Branch 61 taken 1 times.
✗ Branch 62 not taken.
✓ Branch 64 taken 1 times.
✗ Branch 65 not taken.
✓ Branch 67 taken 1 times.
✗ Branch 68 not taken.
✓ Branch 70 taken 1 times.
✗ Branch 71 not taken.
✓ Branch 73 taken 1 times.
✗ Branch 74 not taken.
✓ Branch 76 taken 1 times.
✗ Branch 77 not taken.
✓ Branch 79 taken 1 times.
✗ Branch 80 not taken.
✓ Branch 82 taken 1 times.
✗ Branch 83 not taken.
✓ Branch 85 taken 1 times.
✗ Branch 86 not taken.
✓ Branch 88 taken 1 times.
✗ Branch 89 not taken.
✓ Branch 91 taken 1 times.
✗ Branch 92 not taken.
✓ Branch 94 taken 1 times.
✗ Branch 95 not taken.
✓ Branch 97 taken 1 times.
✗ Branch 98 not taken.
✓ Branch 100 taken 1 times.
✗ Branch 101 not taken.
✓ Branch 103 taken 1 times.
✗ Branch 104 not taken.
✓ Branch 106 taken 1 times.
✗ Branch 107 not taken.
✓ Branch 109 taken 1 times.
✗ Branch 110 not taken.
✓ Branch 112 taken 1 times.
✗ Branch 113 not taken.
✓ Branch 115 taken 1 times.
✗ Branch 116 not taken.
✓ Branch 118 taken 1 times.
✗ Branch 119 not taken.
✓ Branch 121 taken 1 times.
✗ Branch 122 not taken.
✓ Branch 124 taken 1 times.
✗ Branch 125 not taken.
✓ Branch 127 taken 1 times.
✗ Branch 128 not taken.
✓ Branch 130 taken 1 times.
✗ Branch 131 not taken.
✓ Branch 133 taken 1 times.
✗ Branch 134 not taken.
✓ Branch 136 taken 1 times.
✗ Branch 137 not taken.
✓ Branch 139 taken 1 times.
✗ Branch 140 not taken.
✓ Branch 142 taken 1 times.
✗ Branch 143 not taken.
✓ Branch 145 taken 1 times.
✗ Branch 146 not taken.
✓ Branch 148 taken 1 times.
✗ Branch 149 not taken.
✓ Branch 151 taken 1 times.
✗ Branch 152 not taken.
✓ Branch 154 taken 1 times.
✗ Branch 155 not taken.
✓ Branch 157 taken 1 times.
✗ Branch 158 not taken.
✓ Branch 160 taken 1 times.
✗ Branch 161 not taken.
✓ Branch 163 taken 1 times.
✗ Branch 164 not taken.
✓ Branch 166 taken 1 times.
✗ Branch 167 not taken.
✓ Branch 169 taken 1 times.
✗ Branch 170 not taken.
✓ Branch 172 taken 1 times.
✗ Branch 173 not taken.
✓ Branch 175 taken 1 times.
✗ Branch 176 not taken.
✓ Branch 178 taken 1 times.
✗ Branch 179 not taken.
✓ Branch 181 taken 1 times.
✗ Branch 182 not taken.
✓ Branch 184 taken 1 times.
✗ Branch 185 not taken.
✓ Branch 187 taken 1 times.
✗ Branch 188 not taken.
✓ Branch 190 taken 1 times.
✗ Branch 191 not taken.
✓ Branch 193 taken 1 times.
✗ Branch 194 not taken.
✓ Branch 196 taken 1 times.
✗ Branch 197 not taken.
✓ Branch 199 taken 1 times.
✗ Branch 200 not taken.
✓ Branch 202 taken 1 times.
✗ Branch 203 not taken.
✓ Branch 205 taken 1 times.
✗ Branch 206 not taken.
✓ Branch 208 taken 1 times.
✗ Branch 209 not taken.
✓ Branch 211 taken 1 times.
✗ Branch 212 not taken.
✓ Branch 214 taken 1 times.
✗ Branch 215 not taken.
✓ Branch 217 taken 1 times.
✗ Branch 218 not taken.
✓ Branch 220 taken 1 times.
✗ Branch 221 not taken.
✓ Branch 223 taken 1 times.
✗ Branch 224 not taken.
✓ Branch 226 taken 1 times.
✗ Branch 227 not taken.
✓ Branch 229 taken 1 times.
✗ Branch 230 not taken.
✓ Branch 232 taken 1 times.
✗ Branch 233 not taken.
✓ Branch 235 taken 1 times.
✗ Branch 236 not taken.
✓ Branch 238 taken 1 times.
✗ Branch 239 not taken.
✓ Branch 241 taken 1 times.
✗ Branch 242 not taken.
✓ Branch 244 taken 1 times.
✗ Branch 245 not taken.
✓ Branch 247 taken 1 times.
✗ Branch 248 not taken.
✓ Branch 250 taken 1 times.
✗ Branch 251 not taken.
✓ Branch 253 taken 1 times.
✗ Branch 254 not taken.
✓ Branch 256 taken 1 times.
✗ Branch 257 not taken.
✓ Branch 259 taken 1 times.
✗ Branch 260 not taken.
✓ Branch 262 taken 1 times.
✗ Branch 263 not taken.
✓ Branch 265 taken 1 times.
✗ Branch 266 not taken.
✓ Branch 268 taken 1 times.
✗ Branch 269 not taken.
✓ Branch 271 taken 1 times.
✗ Branch 272 not taken.
✓ Branch 274 taken 1 times.
✗ Branch 275 not taken.
✓ Branch 277 taken 1 times.
✗ Branch 278 not taken.
✓ Branch 280 taken 1 times.
✗ Branch 281 not taken.
✓ Branch 283 taken 1 times.
✗ Branch 284 not taken.
✓ Branch 286 taken 1 times.
✗ Branch 287 not taken.
✓ Branch 289 taken 1 times.
✗ Branch 290 not taken.
✓ Branch 292 taken 1 times.
✗ Branch 293 not taken.
✓ Branch 295 taken 1 times.
✗ Branch 296 not taken.
✓ Branch 298 taken 1 times.
✗ Branch 299 not taken.
✓ Branch 301 taken 1 times.
✗ Branch 302 not taken.
✓ Branch 304 taken 1 times.
✗ Branch 305 not taken.
✓ Branch 307 taken 1 times.
✗ Branch 308 not taken.
✓ Branch 310 taken 1 times.
✗ Branch 311 not taken.
✓ Branch 313 taken 1 times.
✗ Branch 314 not taken.
✓ Branch 316 taken 1 times.
✗ Branch 317 not taken.
✓ Branch 319 taken 1 times.
✗ Branch 320 not taken.
✓ Branch 322 taken 1 times.
✗ Branch 323 not taken.
✓ Branch 325 taken 1 times.
✗ Branch 326 not taken.
✓ Branch 328 taken 1 times.
✗ Branch 329 not taken.
✓ Branch 331 taken 1 times.
✗ Branch 332 not taken.
✓ Branch 334 taken 1 times.
✗ Branch 335 not taken.
✓ Branch 337 taken 1 times.
✗ Branch 338 not taken.
✓ Branch 340 taken 1 times.
✗ Branch 341 not taken.
✓ Branch 343 taken 1 times.
✗ Branch 344 not taken.
✓ Branch 346 taken 1 times.
✗ Branch 347 not taken.
✓ Branch 349 taken 1 times.
✗ Branch 350 not taken.
✓ Branch 352 taken 1 times.
✗ Branch 353 not taken.
✓ Branch 355 taken 1 times.
✗ Branch 356 not taken.
120 datafileSeparator_ = separator;
346 }
347
348 /*!
349 * \brief Sets the terminal used for interactive output
350 *
351 * \param terminal The user-specified terminal
352 */
353 void setTerminalType(std::string terminal)
354 {
355 terminalType_ = terminal;
356 }
357
358 /*!
359 * \brief Sets the output directory for data and gnuplot files
360 *
361 * \param outputDirectory The user-specified terminal
362 */
363 1 void setOutputDirectory(const std::string& outputDirectory)
364 {
365
1/2
✗ Branch 2 not taken.
✓ Branch 3 taken 1 times.
1 outputDirectory_ = outputDirectory + "/";
366 1 }
367
368 /*!
369 * \brief Use dashed (true) or solid (false) lines
370 *
371 * \param dashed Use dashed lines
372 */
373 void useDashedLines(bool dashed)
374 {
375 linetype_ = dashed ? "dashed" : "solid";
376 }
377
378 private:
379 // Give plot command to gnuplot
380 void executeGnuplot(const std::string& plotCommand, std::FILE * pipe) const
381 {
382 #ifdef DUMUX_HAVE_GNUPLOT
383 fputs((plotCommand + "\n").c_str(), pipe);
384 fflush(pipe);
385 #else
386 std::cerr << "Warning: Gnuplot has not been found by CMake, no image generation or interactive display possible." << std::endl;
387 std::cerr << "Note: The data and the gnuplot instruction file will still be created." << std::endl;
388 #endif
389 }
390
391 // Check validity of number
392 977726 void checkNumber(Scalar number, const std::string& text = "") const
393 {
394 using std::isnan;
395 using std::isinf;
396
1/2
✗ Branch 0 not taken.
✓ Branch 1 taken 977726 times.
977726 if (isnan(number))
397 Dune::dwarn << "warning: " << text << " is not a number, adjust your data range" << std::endl;
398
2/4
✗ Branch 0 not taken.
✓ Branch 1 taken 977726 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 977726 times.
1955452 if (isinf(number))
399 Dune::dwarn << "warning: " << text << " is infinity, adjust your data range" << std::endl;
400 977726 }
401
402 // Convert string with higher precision
403 template <typename T>
404 std::string toStringWithPrecision(const T value, const int n = 8)
405 {
406 std::ostringstream out;
407 out << std::setprecision(n) << value;
408 return out.str();
409 }
410
411 std::FILE * pipeInteractive_;
412 std::FILE * pipeImage_;
413 bool openPlotWindow_;
414 bool persist_;
415 bool createImage_;
416 std::string terminalType_;
417 std::string outputDirectory_;
418 char datafileSeparator_;
419 std::string linetype_;
420 StringVector curve_;
421 StringVector curveOptions_;
422 CurveTypeVector curveType_;
423 Scalar xRangeMin_;
424 Scalar xRangeMax_;
425 bool xRangeIsSet_;
426 Scalar yRangeMin_;
427 Scalar yRangeMax_;
428 bool yRangeIsSet_;
429 std::string xLabel_;
430 std::string yLabel_;
431 std::string plotOptions_;
432 std::string gnuplotPath_;
433 };
434 } // end namespace Dumux
435 #endif
436