Skip to content

2D Graph Plotter

Type up to four functions and see them on the same axes. Auto-fits the y-axis to the data unless you override it.

Plot up to four functions of x at once. Type any expression — sin(x), x^2 - 4, exp(-x^2/2).

Notation cheat sheet

The plotter accepts the same expression syntax as the rest of the site:

  • x^2 - 4x + 3 — polynomials
  • sin(x), cos(2x), tan(x/2) — trig
  • exp(-x^2/2) / sqrt(2*pi) — the standard normal PDF
  • 1/(1 + exp(-x)) — the logistic sigmoid
  • abs(x - 3) + 2 — piecewise-linear curves

Discontinuities are handled

For functions like 1/x or tan(x), a naive plotter draws a vertical line right through the asymptote, which is wrong. This plotter detects huge jumps between adjacent samples and lifts the pen so you can clearly see where the function blows up.