FuncSketch
Loading...
Searching...
No Matches
axis_ticks.cpp File Reference

Implementation of AxisTicks class. More...

#include "func_sketch/plotter/axis_ticks.h"
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdint>
#include <ranges>
#include <fmt/format.h>
Include dependency graph for axis_ticks.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void func_sketch::plotter::generate_axis_ticks (const std::pair< Real, Real > &range, std::size_t approx_num_ticks, AxisTicks &ticks)
 Generate ticks of axes.

Detailed Description

Implementation of AxisTicks class.

Definition in file axis_ticks.cpp.

Function Documentation

◆ generate_axis_ticks()

void func_sketch::plotter::generate_axis_ticks ( const std::pair< Real, Real > & range,
std::size_t approx_num_ticks,
AxisTicks & ticks )

Generate ticks of axes.

Parameters
[in]rangeRange of the axis. Pair of minimum and maximum values.
[in]approx_num_ticksDesired number of ticks. Approximately this number of ticks will be generated.
[out]ticksTicks of the axis.

Definition at line 32 of file axis_ticks.cpp.