MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / Demo_BarPlots

Function Demo_BarPlots

Source/3rdParty/implot/implot_demo.cpp:544–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542//-----------------------------------------------------------------------------
543
544void Demo_BarPlots() {
545 IMGUI_DEMO_MARKER("Plots/Bar Plots");
546 static ImS8 data[10] = {1,2,3,4,5,6,7,8,9,10};
547 if (ImPlot::BeginPlot("Bar Plot")) {
548 ImPlot::PlotBars("Vertical",data,10,0.7,1);
549 ImPlot::PlotBars("Horizontal",data,10,0.4,1,{ImPlotProp_Flags, ImPlotBarsFlags_Horizontal});
550 ImPlot::EndPlot();
551 }
552}
553
554//-----------------------------------------------------------------------------
555

Callers

nothing calls this directly

Calls 3

BeginPlotFunction · 0.85
PlotBarsFunction · 0.85
EndPlotFunction · 0.85

Tested by

no test coverage detected