Skip to content

Line Specs

1
fplot(fn, spec_str);

example_line_spec_1

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#include <iostream>
#include <matplot/matplot.h>
#include <set>
#include <thread>
#include <vector>

int main() {
    using namespace matplot;

    fplot("sin(x)", "-.r*");
    hold(on);
    fplot("sin(x-pi/2)", "--mo");
    fplot("sin(x-pi)", ":bs");

    show();
    return 0;
}