34 x = linspace(-5, 5, N);
35 y = exp(-(x - 1) % (x - 1) / datum::pi);
38 gp.
label(-4, 0.5,
" $f(x)=e^{-\\\\frac{(x-1)^2}{\\\\pi}} $");
void set_output(const char *name)
Save plot to file.
void xlim(const double xmin, const double xmax)
Set X-axis range.
void plot_show(void)
Show plots.
void label(const double &x, const double &y, const char *label)
Set label at position x,y.
void plot_add(const T1 &x, const T2 &y, const std::string lb, const std::string ls="lines")
Push plot y vs. x with label and linespec.