MCPcopy Create free account
hub / github.com/alandefreitas/matplotplusplus / main

Function main

examples/data_distribution/histogram/histogram_7.cpp:6–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include <thread>
5
6int main() {
7 using namespace matplot;
8
9 std::vector<std::string> categories = {
10 "no", "no", "yes", "yes", "yes", "no", "no",
11 "no", "no", "undecided", "undecided", "yes", "no", "no",
12 "no", "yes", "no", "yes", "no", "yes", "no",
13 "no", "no", "yes", "yes", "yes", "yes"};
14 hist(categories)->bar_width(0.5);
15
16 show();
17 return 0;
18}

Callers

nothing calls this directly

Calls 3

showFunction · 0.85
histFunction · 0.50
bar_widthMethod · 0.45

Tested by

no test coverage detected