| 1 | #include <matplot/matplot.h> |
| 2 | |
| 3 | int main() { |
| 4 | using namespace matplot; |
| 5 | |
| 6 | auto ax1 = subplot(2, 1, 0); |
| 7 | auto [x, y, z] = peaks(); |
| 8 | (void) x; |
| 9 | (void) y; |
| 10 | z = transpose(z); |
| 11 | plot(ax1, z); |
| 12 | xlim(ax1, {0, 20}); |
| 13 | |
| 14 | auto ax2 = subplot(2, 1, 1); |
| 15 | plot(ax2, z); |
| 16 | |
| 17 | ax1->font_size(15); |
| 18 | ax2->line_width(2); |
| 19 | |
| 20 | show(); |
| 21 | return 0; |
| 22 | } |