Text with Arrow 1textarrow(x1, y1, x2, y2, str); Plot C++ 1 2 3 4 5 6 7 8 9 10 11 12#include <cmath> #include <matplot/matplot.h> int main() { using namespace matplot; plot(iota(1, 10)); textarrow(2.5, 6.5, 5, 5, "y=x"); show(); return 0; } More examples Plot C++ 1 2 3 4 5 6 7 8 9 10 11 12 13 14#include <cmath> #include <matplot/matplot.h> int main() { using namespace matplot; plot(iota(1, 10)); auto [t, a] = textarrow(2.5, 6.5, 5, 5, "y=x"); t->color("red").font_size(14); a->color("blue"); show(); return 0; }