mirror of
https://github.com/gwm17/implot.git
synced 2024-11-23 02:38:53 -05:00
start heatmap dev
This commit is contained in:
parent
9dbc22e3e9
commit
71e38ad770
10
implot.cpp
10
implot.cpp
|
@ -2822,6 +2822,16 @@ void PlotPieChart(const char** label_ids, double* values, int count, double x, d
|
||||||
return PlotPieChartEx(label_ids, values, count, x, y, radius, show_percents, angle0);
|
return PlotPieChartEx(label_ids, values, count, x, y, radius, show_percents, angle0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// PLOT HEATMAP
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
void PlotHeatmap(const char* label_id, const double* values, int rows, int cols, double scale_min, double scale_max, bool show_labels) {
|
||||||
|
ImPlotItem* item = RegisterItem(label_id);
|
||||||
|
if (!item->Show)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// PLOT DIGITAL
|
// PLOT DIGITAL
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
3
implot.h
3
implot.h
|
@ -226,6 +226,9 @@ void PlotErrorBars(const char* label_id, const double* xs, const double* ys, con
|
||||||
void PlotPieChart(const char** label_ids, float* values, int count, float x, float y, float radius, bool show_percents = true, float angle0 = 90);
|
void PlotPieChart(const char** label_ids, float* values, int count, float x, float y, float radius, bool show_percents = true, float angle0 = 90);
|
||||||
void PlotPieChart(const char** label_ids, double* values, int count, double x, double y, double radius, bool show_percents = true, double angle0 = 90);
|
void PlotPieChart(const char** label_ids, double* values, int count, double x, double y, double radius, bool show_percents = true, double angle0 = 90);
|
||||||
|
|
||||||
|
// Plots a 2D heatmap chart.
|
||||||
|
void PlotHeatmap(const char* label_id, const double* values, int rows, int cols, double scale_min, double scale_max, bool show_labels = true);
|
||||||
|
|
||||||
// Plots digital data.
|
// Plots digital data.
|
||||||
void PlotDigital(const char* label_id, const float* xs, const float* ys, int count, int offset = 0, int stride = sizeof(float));
|
void PlotDigital(const char* label_id, const float* xs, const float* ys, int count, int offset = 0, int stride = sizeof(float));
|
||||||
void PlotDigital(const char* label_id, const double* xs, const double* ys, int count, int offset = 0, int stride = sizeof(double));
|
void PlotDigital(const char* label_id, const double* xs, const double* ys, int count, int offset = 0, int stride = sizeof(double));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user