ZeGrapher
A free and open source math plotter, easy to pick up. It draws functions, sequences, parametric equations and data in the plane.
A free and open source math plotter, easy to pick up. It draws functions, sequences, parametric equations and data in the plane.
ZeGrapher draws mathematical objects in the plane — functions, sequences, parametric equations and data — and exports exactly what you see.
f(x) = 2 + cos(x). The usual math functions are built in, and you can call any object you define.u(n) = 0 ; 1 ; u(n-2) + u(n-1).π, and separate subdivisions and colors for x and y.svg, pdf) or image (png, jpeg, bmp, ppm). You set the size in real centimeters.

The graph is what you see on the right, and what you export. The Grid and Graph tabs set its look, precision and size.
You drive the graph with the mouse:
| Action | Mouse |
|---|---|
| Move the view | Drag with the left mouse button |
| Zoom both axes at once | Scroll wheel |
| Zoom the y axis only | Ctrl + vertical scroll |
| Zoom the x axis only | Ctrl + horizontal scroll or Ctrl + Shift + vertical scroll |
The zoom keeps the point under the cursor in place.
On a touchpad or a touchscreen, a pinch zooms both axes too.
On macOS, use Cmd instead of Ctrl.

The four fields at the top of the panel are the bounds of the view. Under them are five tabs:
| Tab | What it holds |
|---|---|
| Math | the objects you plot: equations, constants, parametric equations, data |
| Grid | ticks, grid and sub-grid |
| Graph | size, font, background, axes |
| App | language, font, syntax colors, update check |
| About | version, updates, licenses, release notes |
The three buttons at the bottom left are for files.
On the edge of the panel:
The four fields at the top of the panel accept expressions, not just numbers. A minimum must be below its maximum, or the field turns invalid.
The round button in the top right corner sets both axes back to -10 .. 10.


The three buttons at the bottom left of the panel are, in order:
svg, pdf) or as an image (png, jpeg, bmp, ppm). The export looks exactly like the graph on the screen. Shortcut: Ctrl + E..zg). The first save asks for a file, and later saves write to it. Documents don’t include the App tab settings. Shortcuts: Ctrl + S, and Ctrl + Shift + S to save to another file.Ctrl + O.On macOS, the shortcuts use Cmd instead of Ctrl.
A .zg document dropped on the window loads like Load does, and a CSV file dropped on it opens the CSV import into a new sheet.
At the next start, ZeGrapher opens your last work again. If you give a .zg file on the command line, the app opens that file instead.

This tab defines the objects to plot, or to use inside other objects: functions, sequences, constants (which are never plotted), parametric equations, and data columns.
This button, at the bottom of the Math tab, adds an object.

The dropdown at the top of the new card sets the kind of object.

Every card has the same buttons:
You define a function by its natural equation:
f(x) = 2 + cos(x)
These functions are built in, and work in any expression:
| Kind | Functions |
|---|---|
| Trigonometry | cos, sin, tan, acos, asin, atan |
| Hyperbolic | cosh, sinh, tanh, acosh, asinh, atanh |
| Hyperbolic, short names | ch, sh, th, ach, ash, ath |
| Powers and logarithms | sqrt, exp, ln (base e), log (base 10), lg (base 2) |
| Rounding | floor, ceil |
| Two arguments | max, min |
| Others | abs, erf, erfc, gamma (also written Γ) |
These constants are built in:
| Name | Value |
|---|---|
math::pi, math::π |
3.141592653589793 |
physics::kB |
the Boltzmann constant, 1.380649e-23 |
physics::h |
the Planck constant, 6.62607015e-34 |
physics::c |
the speed of light in vacuum, 299792458 |
The physics constants are in SI units.
A sequence is a list of expressions separated by , or ;. The first expressions are the first terms of the sequence. The last one is the general term, and the app uses it for every index after those first terms.
u(n) = 0 ; 1 ; 0.5*(u(n-2) + u(n-1))

The border color of an input line shows whether the expression is valid. An invalid expression also gets an error message below it.

A field that expects a value, such as a bound of the view, can take the warning color instead: the expression is valid, but doesn’t give a number.

You choose these three colors in the App tab.
A constant is a name with a numeric value. Every other object, except another constant, can then use it in its expression.

The slider underneath moves the value between min and max, and every curve that uses the constant follows. Drag the slider by hand, or animate it. The row under the slider holds the animation controls: play, loop, ping-pong, and the period of one sweep.
This button on a constant card turns it into a Schrödinger constant.

The constant then holds steps + 1 values, at equal distances from min to max. The app plots every object that uses the constant once per value.

These objects get a second color disc. The app draws the family of curves as a gradient from the first color to the second.
A parametric equation is a pair of objects that give the coordinates of each point of the curve. Name them in the two fields:

The app plots the pair between the Start and End, defined in the plot style of the parametric equation.

A data object is a sheet of named columns. Each column is a math object of its own, with a name and the same buttons as any other object.

The app plots the values of a column against its indices: the first value at x = 0, the second at x = 1, and so on. To plot one column against another, use a parametric equation.

The buttons at the bottom right of the sheet import a CSV file, export the columns to a CSV file, and add a column. Drag the bar underneath to resize the sheet, and double-click it to give the sheet its default height again.

The table button on a column shows that column in the table next to the panel. In the table:
Enter to open the editor.Backspace to clear the content of the selected cells.Delete to remove the selected cells. The values below them move up.Selecting a whole column and pressing Delete also deletes the column object in the Math tab.
The bar-chart button on a column opens a small form: name an object, give a Start, an End and a Step. The check button samples the object and loads the values into the column.

The CSV button is on a sheet, or at the bottom of the Math tab for a new sheet.

It opens a file dialog. A side pane then shows the import settings, with a preview of the file underneath. The preview updates as you change a setting:
\t for a TAB.Load makes columns out of the file, and Cancel leaves everything as it was.
We tested ZeGrapher on CSV files of several million cells.
The brush button opens the object’s plot style settings:

xmin and xmax, the bounds of the view. Both fields accept any expression, for example -math::pi and 4*math::pi.
Coordinates sets the numbers along the axes: their spacing, the number of digits they can use, and a multiplier. The multiplier is an expression, so ticks can be multiples of math::pi, and the labels are written as multiples of it.
You set Grid and Sub-grid separately for x and y. Each has a color, a line width, and a switch to show or hide it. The sub-grid also sets how many parts it divides each cell into.

By default the graph fills the window. Set Graph size to Custom, in the Size box at the top, and the graph becomes a sheet of the size you give. That size is in real centimeters. A centimeter is a real centimeter on the screen, and stays one in an exported pdf or svg.
Scaling, in the same box, resizes everything the app draws at once: the lines, the text and the ticks.
The app draws that sheet as a page in the window, with a zoom bar above it:

The bar zooms the sheet on the screen, and the last button fits the whole sheet in the window. This zoom doesn’t change the graph: the view bounds stay as they are. Centimeter sizes are correct at 100% zoom.
The two boxes under Size:

This tab sets the language and the font of the interface, and the three colors of the input lines: valid, warning and invalid.
Check at startup, under Updates, asks zegrapher.com for the latest release when the app starts. If a newer release is out, a banner over the graph links to the site. The check sends the app version and language, the OS and the CPU architecture. The site also sees the IP address, and uses it only to find the country. Linux distribution packages can leave this setting out, since the package manager handles updates.
This tab is about ZeGrapher itself. It has:
ZeGrapher is free and open source, under the GNU AGPL license.
Version 4.0.0, released on 2026-11-08
Debian, Fedora, Ubuntu, Arch Linux and FreeBSD ship ZeGrapher in their official repositories. Their packages can lag behind the version above.
If ZeGrapher is useful to you, please consider a donation to support it.