1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-22 18:28:53 -05:00

start heatmap dev

This commit is contained in:
Evan Pezent 2020-06-01 17:33:01 -05:00
parent 9dbc22e3e9
commit 71e38ad770
2 changed files with 13 additions and 0 deletions

View File

@ -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);
}
//-----------------------------------------------------------------------------
// 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
//-----------------------------------------------------------------------------

View File

@ -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, 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.
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));