* @brief Adjusts m_minY/m_maxY when data-derived bounds need padding. */
| 776 | * @brief Adjusts m_minY/m_maxY when data-derived bounds need padding. |
| 777 | */ |
| 778 | void Widgets::MultiPlot::padDerivedRange() |
| 779 | { |
| 780 | applyDerivedYBounds(); |
| 781 | |
| 782 | m_maxY = std::ceil(m_maxY); |
| 783 | m_minY = std::floor(m_minY); |
| 784 | if (DSP::almostEqual(m_maxY, m_minY)) { |
| 785 | m_minY -= 1; |
| 786 | m_maxY += 1; |
| 787 | } |
| 788 | } |
| 789 | |
| 790 | /** |
| 791 | * @brief Selects the padding strategy for the current m_minY/m_maxY pair. |
nothing calls this directly
no test coverage detected