Graphs online

Graph Plotter Online

Type points, paste a table or write a function, and the graph appears at once. Download it as a PNG, and get the Python (Matplotlib) code that draws the same graph. Free, no sign-up.

Plot points or a function

One point per line: x first, then y. You can also paste columns from Excel or Google Sheets: the first column becomes the x axis and each other column its own line.

Examples:
Open in the Matplotlib editor →
graph.py

How to plot points on a graph

  1. Open the Points tab.
  2. Type the coordinates, one point per line, x first and then y. Separate the numbers with a space, a tab, a comma or a semicolon.
  3. Pick a chart type: line with points, line, points only or bars.
  4. Add a title and axis labels if you like, then click Download PNG.

If a line has only one number, it becomes the y value and the x axis counts 1, 2, 3 and so on.

How to graph a function online

  1. Open the Function tab.
  2. Type a formula in x, for example x^2 - 3*x + 2. To compare several functions on one graph, put each on its own line.
  3. Set the range of x. The bounds can be expressions too, such as -2*pi and 2*pi.
  4. For functions with breaks, such as tan(x) or 1/x, the y range is picked for you so the graph stays readable.
What to typeMeaning
+ - * /, bracketsArithmetic. The multiplication sign can be left out: 2x, 3(x + 1)
x^2 or x**2Power
sqrt(x), abs(x)Square root and absolute value
sin, cos, tan, cotTrigonometric functions, x in radians
asin, acos, atanInverse trigonometric functions
exp(x), ln(x), log(x), log2(x)Exponential, natural, base-10 and base-2 logarithms
floor(x), ceil(x)Round down and up
pi, eThe numbers π and e

Make a graph from an Excel table

Select two or more columns in Excel or Google Sheets, copy them and paste them into the Points or a table box. The first column becomes the x axis and every other column its own line, in its own color.

  • If the first row holds column names, they become the x axis label and the legend.
  • The first column can hold labels instead of numbers: months, cities, product names. The Bars chart type suits that kind of data.

What you can plot

The page works as a simple graph maker: your data on the left, the graph on the right. These are the most common uses.

  • One quantity against another. Distance over time, current against voltage, temperature through the day: enter the pairs of values on the Points tab and label the axes.
  • Lab measurements. Choose Points only or Line with points to show both the measurements and the overall trend.
  • Functions. On the Function tab you can draw several functions on one graph and compare them, for example sin(x) and cos(x).
  • Bar charts. The Bars type compares values by year, month or experiment number.

Python code for your graph

Under the graph you always get Python code using Matplotlib that draws the same graph. Paste it into your own program for a report or homework, or open it in the editor to change the colors, the size, the labels or add a second axis.

Frequently asked questions

How do I plot points on a graph online?

Open the Points tab and type one point per line, x first and then y, for example 1 2 on the first line and 2 4 on the next. The graph is drawn as you type, and Download PNG saves it.

Can I graph a function like sin(x) or x^2?

Yes. Open the Function tab and type the formula in x. Put several functions on separate lines to compare them on one graph, and set the range of x below.

Can I paste data from Excel or Google Sheets?

Yes. Copy two or more columns and paste them into the Points or a table box. The first column becomes the x axis and every other column its own line.

How do I save the graph?

Click Download PNG. To change the style in more detail, copy the Python code under the graph or open it in the Matplotlib editor.

Is it free?

Yes. The graph plotter, the PNG download and the Matplotlib editor are free and need no account.