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

Definition of PlotConfig class. More...

#include <cstddef>
#include "func_sketch/plotter/rgb_color.h"
Include dependency graph for plot_config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  func_sketch::plotter::PlotConfig
 Class of configurations of a plot. More...

Variables

constexpr int func_sketch::plotter::default_left_margin = 60
 Default left margin in pixels.
constexpr int func_sketch::plotter::default_right_margin = 60
 Default right margin in pixels.
constexpr int func_sketch::plotter::default_top_margin = 50
 Default top margin in pixels.
constexpr int func_sketch::plotter::default_bottom_margin = 50
 Default bottom margin in pixels.
constexpr int func_sketch::plotter::default_tick_label_font_size = 11
 Default font size of tick labels in pixels.
constexpr int func_sketch::plotter::default_axes_line_width = 1
 Default line width of axes in pixels.
constexpr int func_sketch::plotter::default_grid_line_width = 1
 Default line width of grid lines in pixels.
constexpr int func_sketch::plotter::default_zero_line_width = 2
 Default line width of the grid line at zero in pixels.
constexpr int func_sketch::plotter::default_curve_line_width = 1
 Default line width of curves in pixels.
constexpr auto func_sketch::plotter::default_background_color
 Default color of background.
constexpr auto func_sketch::plotter::default_axes_color = RGBColor{.r = 0x24, .g = 0x24, .b = 0x24}
 Default color of axes.
constexpr auto func_sketch::plotter::default_grid_color = RGBColor{.r = 0xC8, .g = 0xC8, .b = 0xC8}
 Default color of grid lines.
constexpr std::size_t func_sketch::plotter::default_initial_num_sample_points = 110
 Default number of points to sample initially in adaptive sampling.
constexpr std::size_t func_sketch::plotter::default_max_num_sample_points = 2000
 Default maximum number of points to sample in adaptive sampling.
constexpr std::size_t func_sketch::plotter::max_max_num_sample_points = 10000
 Maximum value of the maximum number of points to sample in adaptive sampling for safety limit of memory usage.
constexpr double func_sketch::plotter::default_max_coordinate_change_rate = 0.01
 Default threshold of the change in coordinates of sample points relative to the plot range in adaptive sampling.
constexpr double func_sketch::plotter::default_slope_change_threshold = 0.1
 Default threshold of the change in slope normalized by the plot range in adaptive sampling.
constexpr double func_sketch::plotter::default_min_param_change_rate = 0.001
 Default minimum rate of parameter change in adaptive sampling.
constexpr double func_sketch::plotter::min_min_param_change_rate = 1e-4
 Minimum value of the minimum rate of parameter change in adaptive sampling for safety limit of memory usage.
constexpr std::size_t func_sketch::plotter::default_num_pixels_per_tick_in_x_axis = 120
 Default number of pixels per tick in the x-axis.
constexpr std::size_t func_sketch::plotter::default_num_pixels_per_tick_in_y_axis = 100
 Default number of pixels per tick in the y-axis.

Detailed Description

Definition of PlotConfig class.

Definition in file plot_config.h.

Variable Documentation

◆ default_left_margin

int func_sketch::plotter::default_left_margin = 60
constexpr

Default left margin in pixels.

Definition at line 31 of file plot_config.h.

◆ default_right_margin

int func_sketch::plotter::default_right_margin = 60
constexpr

Default right margin in pixels.

Definition at line 34 of file plot_config.h.

◆ default_top_margin

int func_sketch::plotter::default_top_margin = 50
constexpr

Default top margin in pixels.

Definition at line 37 of file plot_config.h.

◆ default_bottom_margin

int func_sketch::plotter::default_bottom_margin = 50
constexpr

Default bottom margin in pixels.

Definition at line 40 of file plot_config.h.

◆ default_tick_label_font_size

int func_sketch::plotter::default_tick_label_font_size = 11
constexpr

Default font size of tick labels in pixels.

Definition at line 43 of file plot_config.h.

◆ default_axes_line_width

int func_sketch::plotter::default_axes_line_width = 1
constexpr

Default line width of axes in pixels.

Definition at line 46 of file plot_config.h.

◆ default_grid_line_width

int func_sketch::plotter::default_grid_line_width = 1
constexpr

Default line width of grid lines in pixels.

Definition at line 49 of file plot_config.h.

◆ default_zero_line_width

int func_sketch::plotter::default_zero_line_width = 2
constexpr

Default line width of the grid line at zero in pixels.

Definition at line 52 of file plot_config.h.

◆ default_curve_line_width

int func_sketch::plotter::default_curve_line_width = 1
constexpr

Default line width of curves in pixels.

Definition at line 55 of file plot_config.h.

◆ default_background_color

auto func_sketch::plotter::default_background_color
constexpr
Initial value:
=
RGBColor{.r = 255, .g = 255, .b = 255}
Struct of RGB color.
Definition rgb_color.h:31

Default color of background.

Definition at line 58 of file plot_config.h.

◆ default_axes_color

auto func_sketch::plotter::default_axes_color = RGBColor{.r = 0x24, .g = 0x24, .b = 0x24}
constexpr

Default color of axes.

Definition at line 62 of file plot_config.h.

◆ default_grid_color

auto func_sketch::plotter::default_grid_color = RGBColor{.r = 0xC8, .g = 0xC8, .b = 0xC8}
constexpr

Default color of grid lines.

Definition at line 65 of file plot_config.h.

◆ default_initial_num_sample_points

std::size_t func_sketch::plotter::default_initial_num_sample_points = 110
constexpr

Default number of points to sample initially in adaptive sampling.

Definition at line 68 of file plot_config.h.

◆ default_max_num_sample_points

std::size_t func_sketch::plotter::default_max_num_sample_points = 2000
constexpr

Default maximum number of points to sample in adaptive sampling.

Definition at line 71 of file plot_config.h.

◆ max_max_num_sample_points

std::size_t func_sketch::plotter::max_max_num_sample_points = 10000
constexpr

Maximum value of the maximum number of points to sample in adaptive sampling for safety limit of memory usage.

Definition at line 74 of file plot_config.h.

◆ default_max_coordinate_change_rate

double func_sketch::plotter::default_max_coordinate_change_rate = 0.01
constexpr

Default threshold of the change in coordinates of sample points relative to the plot range in adaptive sampling.

Definition at line 77 of file plot_config.h.

◆ default_slope_change_threshold

double func_sketch::plotter::default_slope_change_threshold = 0.1
constexpr

Default threshold of the change in slope normalized by the plot range in adaptive sampling.

Definition at line 80 of file plot_config.h.

◆ default_min_param_change_rate

double func_sketch::plotter::default_min_param_change_rate = 0.001
constexpr

Default minimum rate of parameter change in adaptive sampling.

Definition at line 83 of file plot_config.h.

◆ min_min_param_change_rate

double func_sketch::plotter::min_min_param_change_rate = 1e-4
constexpr

Minimum value of the minimum rate of parameter change in adaptive sampling for safety limit of memory usage.

Definition at line 86 of file plot_config.h.

◆ default_num_pixels_per_tick_in_x_axis

std::size_t func_sketch::plotter::default_num_pixels_per_tick_in_x_axis = 120
constexpr

Default number of pixels per tick in the x-axis.

Definition at line 89 of file plot_config.h.

◆ default_num_pixels_per_tick_in_y_axis

std::size_t func_sketch::plotter::default_num_pixels_per_tick_in_y_axis = 100
constexpr

Default number of pixels per tick in the y-axis.

Definition at line 92 of file plot_config.h.