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

Definition of AxisTicks class. More...

#include <cstddef>
#include <string>
#include <utility>
#include <vector>
#include "func_sketch/common_types.h"
Include dependency graph for axis_ticks.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  func_sketch::plotter::AxisTicks
 Struct to represent ticks of axes. More...

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

Definition of AxisTicks class.

Definition in file axis_ticks.h.

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.