#include #include #include int main() { using namespace matplot; std::vector x = {1980, 1990, 2000}; std::vector> Y = { {15, 10, -10}, {20, -17, 5}, {-5, 21, 15}}; barstacked(x, Y); show(); return 0; }