| 4 | #include <thread> |
| 5 | |
| 6 | int 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 | } |