#include <PlotTypes.hpp>
|
| static real_t | niceNum (real_t range, bool round) |
| | Rounds a range value to a "nice" human-readable number.
|
◆ NiceScale() [1/2]
| correlation::plotters::detail::NiceScale::NiceScale |
( |
| ) |
|
|
default |
◆ NiceScale() [2/2]
| correlation::plotters::detail::NiceScale::NiceScale |
( |
const DataRange & | range, |
|
|
int | max_ticks = 6, |
|
|
bool | strict_bounds = false, |
|
|
real_t | custom_step = static_cast<real_t>(0.0) ) |
|
inlineexplicit |
◆ niceNum()
| real_t correlation::plotters::detail::NiceScale::niceNum |
( |
real_t | range, |
|
|
bool | round ) |
|
inlinestaticprivate |
Rounds a range value to a "nice" human-readable number.
- Parameters
-
| range | The value range for the axis. |
| round | Whether to perform aggressive rounding. |
- Returns
- The rounded "nice" value.
◆ max
| real_t correlation::plotters::detail::NiceScale::max = static_cast<real_t>(0.0) |
◆ min
| real_t correlation::plotters::detail::NiceScale::min = static_cast<real_t>(0.0) |
◆ spacing
| real_t correlation::plotters::detail::NiceScale::spacing = static_cast<real_t>(0.0) |
Calculated distance between ticks.
◆ ticks
| std::vector<real_t> correlation::plotters::detail::NiceScale::ticks |
Generated tick locations.
The documentation for this struct was generated from the following file: