namespace MyImPlot

Overview

namespace MyImPlot {

// structs

struct Vector2f;
struct WaveData;

// global functions

ImPlotPoint SineWave(
    int idx,
    void* wave_data
    );

ImPlotPoint SawWave(
    int idx,
    void* wave_data
    );

ImPlotPoint Spiral(
    int idx,
    void* wave_data
    );

void Sparkline(
    const char* id,
    const float* values,
    int count,
    float min_v,
    float max_v,
    int offset,
    const ImVec4& col,
    const ImVec2& size
    );

void PlotCandlestick(
    const char* label_id,
    const double* xs,
    const double* opens,
    const double* closes,
    const double* lows,
    const double* highs,
    int count,
    bool tooltip = true,
    float width_percent = 0.25f,
    ImVec4 bullCol = ImVec4(0, 1, 0, 1),
    ImVec4 bearCol = ImVec4(1, 0, 0, 1)
    );

void StyleSeaborn();

template <typename T>
int BinarySearch(
    const T* arr,
    int l,
    int r,
    T x
    );

} // namespace MyImPlot