scatter 0.1.0
AxisOptions.hpp
1/*
2 * Copyright (C) Tobias Löw (tobi.loew@protonmail.ch)
3 *
4 * This file is part of Scatter
5 *
6 * Scatter is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * Scatter is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with Scatter. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#pragma once
21
22#include <string>
23
24namespace scatter
25{
32 {
33 public:
39
45
52 AxisOptions &setShow(const bool &show);
53
60 AxisOptions &setShowGrid(const bool &show_grid);
61
68 AxisOptions &setXmin(const double &xmin);
69
76 AxisOptions &setXmax(const double &xmax);
77
84 AxisOptions &setXticks(const double &xticks);
85
92 AxisOptions &setShowXticks(const bool &show_xticks);
93
100 AxisOptions &setXlabel(const std::string &xlabel);
101
108 AxisOptions &setYmin(const double &ymin);
109
116 AxisOptions &setYmax(const double &ymax);
117
124 AxisOptions &setYticks(const double &yticks);
125
132 AxisOptions &setShowYticks(const bool &show_yticks);
133
140 AxisOptions &setYlabel(const std::string &ylabel);
141
148 AxisOptions &setXPrecision(const int &precision);
149
156 AxisOptions &setYPrecision(const int &precision);
157
158 AxisOptions &setYLogScale(const bool &y_log_scale);
159
165 const bool &getShow() const;
166
172 const bool &getShowGrid() const;
173
179 const double &getXmin() const;
180
186 const double &getXmax() const;
187
193 const double &getXticks() const;
194
200 const bool &getShowXticks() const;
201
207 const std::string &getXlabel() const;
208
214 const double &getYmin() const;
215
221 const double &getYmax() const;
222
228 const double &getYticks() const;
229
235 const bool &getShowYticks() const;
236
242 const std::string &getYlabel() const;
243
249 const int &getXPrecision() const;
250
256 const int &getYPrecision() const;
257
263 const bool &getYLogScale() const;
264
265 private:
267 bool show_;
269 bool show_grid_;
271 double xmin_;
273 double xmax_;
275 double xticks_;
277 bool show_xticks_;
279 std::string xlabel_;
281 double ymin_;
283 double ymax_;
285 double yticks_;
287 bool show_yticks_;
289 std::string ylabel_;
291 int x_precision_;
293 int y_precision_;
295 bool y_log_scale_;
296 };
297} // namespace scatter
[brief description]
Definition AxisOptions.hpp:32
AxisOptions & setShow(const bool &show)
[brief description]
AxisOptions & setShowGrid(const bool &show_grid)
[brief description]
const std::string & getXlabel() const
[brief description]
const double & getYticks() const
[brief description]
const bool & getShowXticks() const
[brief description]
AxisOptions()
[brief description]
AxisOptions & setXPrecision(const int &precision)
[brief description]
const int & getYPrecision() const
[brief description]
const bool & getShowYticks() const
[brief description]
AxisOptions & setYmin(const double &ymin)
[brief description]
AxisOptions & setXticks(const double &xticks)
[brief description]
AxisOptions & setShowYticks(const bool &show_yticks)
[brief description]
const double & getXmax() const
[brief description]
const bool & getShow() const
[brief description]
AxisOptions & setYmax(const double &ymax)
[brief description]
AxisOptions & setYPrecision(const int &precision)
[brief description]
const double & getXticks() const
[brief description]
const bool & getShowGrid() const
[brief description]
AxisOptions & setXmin(const double &xmin)
[brief description]
const std::string & getYlabel() const
[brief description]
const int & getXPrecision() const
[brief description]
const double & getYmin() const
[brief description]
AxisOptions & setXlabel(const std::string &xlabel)
[brief description]
AxisOptions & setXmax(const double &xmax)
[brief description]
const double & getXmin() const
[brief description]
const double & getYmax() const
[brief description]
AxisOptions & setYticks(const double &yticks)
[brief description]
AxisOptions & setShowXticks(const bool &show_xticks)
[brief description]
AxisOptions & setYlabel(const std::string &ylabel)
[brief description]
~AxisOptions()
[brief description]
const bool & getYLogScale() const
[brief description]