| 33 | namespace tev { |
| 34 | |
| 35 | static string formatNumber(float v) { |
| 36 | bool needsScientificNotation = v != 0 && (abs(v) < 0.01f || abs(v) >= 1000); |
| 37 | return needsScientificNotation ? fmt::format("{:.2e}", v) : fmt::format("{:.3f}", v); |
| 38 | } |
| 39 | |
| 40 | MultiGraph::MultiGraph(Widget* parent, string_view caption) : Widget{parent}, mCaption{caption} { |
| 41 | mBackgroundColor = Color(20, 128); |