Skip to content

Commit

Permalink
(#269) Fix dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
TonitaN committed Nov 6, 2023
1 parent 719a2ec commit 5097f50
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions libs/Logger/src/LogTemplate.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#include "Logger/LogTemplate.h"
#include <variant>
#include <algorithm>
#include <cmath>

void LogTemplate::add_parameter(string parameter_name) {

Expand Down Expand Up @@ -252,14 +254,14 @@ string LogTemplate::log_plot(Plot p) {
if (max_y < p.data[i].first.second) max_y = p.data[i].first.second;
}
max_x =
ceil((max_x * (styles.size() + 3)) / max(p.data.size() - 2, size_t(1)));
std::ceil((max_x * (styles.size() + 3)) / max(p.data.size() - 2, size_t(1)));
if (max_x > 10) {
max_x = floor(max_x / 10) * 10;
max_x = std::floor(max_x / 10) * 10;
}
max_y =
ceil((max_y * (styles.size() + 3)) / max(p.data.size() - 2, size_t(1)));
std::ceil((max_y * (styles.size() + 3)) / max(p.data.size() - 2, size_t(1)));
if (max_y > 10) {
max_y = floor(max_y / 10) * 10;
max_y = std::floor(max_y / 10) * 10;
}
visualization =
"\\begin{tikzpicture}\\scriptsize \%begin_plot\n "
Expand Down

0 comments on commit 5097f50

Please sign in to comment.