7eef2544ab
Funciones C++/ImGui para dashboards (grid, panel, docking, sidebar, tabs), visualizaciones (candlestick, gauge, histogram, pie, sparkline, heatmap, scatter, line, bar, surface3d, kpi, table), grafos (force layout, renderer, viewport, spatial hash, types) y utilidades (time series buffer, tracy zones, memory/fps overlay, plot theme). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1.4 KiB
1.4 KiB
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, tested, tests, test_file_path, file_path, framework, params, output
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | tested | tests | test_file_path | file_path | framework | params | output | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| histogram | component | cpp | viz | 1.0.0 | pure | void histogram(const char* title, const float* values, int count, int bins = -1) | Renderiza un histograma con bins automaticos o manuales usando ImPlot PlotHistogram dentro de un frame ImGui |
|
false |
|
false | cpp/functions/viz/histogram.cpp | imgui |
|
Renderiza el histograma en el frame ImGui actual |
histogram
Wrapper atomico sobre ImPlot::PlotHistogram con seleccion automatica del numero de bins.
Cuando bins == -1 usa ImPlotBin_Sturges, que calcula el numero de bins como ceil(log2(n)) + 1. Para distribuciones con muchos valores o alta varianza puede preferirse pasar un valor explicito.
El plot usa ImVec2(-1, 0) para ocupar el ancho disponible con altura automatica.
Debe llamarse dentro del render callback de fn::run_app.