Template Struct plot_t

Struct Documentation

template<typename T>
struct plot_t

Public Functions

inline plot_t(std::string id) noexcept
inline plot_t(std::string id, const stats::stat_histogram_generic_t &histogram) noexcept

Public Members

std::vector<T> data
std::size_t bins
std::array<double, xticks_count> xticks
std::array<std::string, xticks_count> xtick_labels
std::array<const char*, xticks_count> xtick_labels_cstr
std::array<std::string, 2> imgui_ids_strs
std::array<const char*, 2> imgui_ids
bool new_data = true

Public Static Attributes

static constexpr bool has_xticks = true
static constexpr bool has_yticks = false
static constexpr auto channels = 1
static constexpr auto xticks_count = 3