| 2 | #include <matplot/matplot.h> |
| 3 | |
| 4 | int main() { |
| 5 | using namespace matplot; |
| 6 | |
| 7 | fplot([](double x) { return exp(x); }, std::array<double, 2>{-3, 0}, "b"); |
| 8 | hold(on); |
| 9 | fplot([](double x) { return cos(x); }, std::array<double, 2>{0, 3}, "b"); |
| 10 | hold(off); |
| 11 | grid(on); |
| 12 | |
| 13 | show(); |
| 14 | return 0; |
| 15 | } |