Matplotlib Online
Python with numpy, pandas, matplotlib, scipy and scikit-learn. Your charts appear next to the output. Free, no sign-up.
Press Run and your chart appears here.
Plot Python graphs online, no install needed
Write Python, press Run, and your chart appears next to the code. This free online playground runs real Python 3.12 with numpy, pandas, matplotlib, scipy and scikit-learn already installed, so you can go from a few lines of data to a finished plot without setting up Jupyter, pip or a virtual environment.
Pick an example to start: a line chart, a scatter plot with colored groups, a histogram, k-means clusters on the iris dataset or a pandas bar chart. Change a number, run it again and watch the plot change. It is a quick place to test a plt call, check what a groupby returns, or try a scikit-learn model on a bundled dataset.
What this online Python graph plotter does
- Real Python with the data science stack:
numpy,pandas,matplotlib,scipyandscikit-learnare ready toimport. - Charts drawn on the page: every figure your code makes with
plt.show()appears beside the output, sharp at any size, and opens larger with one click. - Several figures in one run show as thumbnails, and Python warnings are listed above the chart instead of hiding in the output.
- Your code is saved in your browser as you type. Copy it or download
main.pyto keep working in Jupyter or your own editor.
What you can plot in the matplotlib playground
- Line charts of a function or a time series with
plt.plot, a legend and labelled axes. - Scatter plots and histograms of random data from
numpy.random, to see a distribution take shape. - Bar charts straight from pandas: group rows with
groupby, sum them and call.plot(kind="bar"). - Machine learning on scikit-learn's bundled datasets such as
load_iris,load_wineandload_digits: clusters, decision boundaries and model scores.
Matplotlib online FAQ
Is this matplotlib online editor free?
Which Python libraries can I use?
numpy, pandas, matplotlib, scipy and scikit-learn, plus the standard library. You cannot pip install other packages here.Do matplotlib charts really show up?
plt.show() after plotting, or just leave the figure open at the end, and the chart appears next to the output. Line, scatter, bar, histogram, image and contour plots are drawn natively; a few kinds of chart are shown as the picture matplotlib rendered instead. One run shows up to 8 figures.Can I use scikit-learn online here?
sklearn as usual and train models such as KMeans, KNeighborsClassifier or LinearRegression. Use the datasets that ship with scikit-learn, like load_iris(), or build your own with numpy and pandas. Datasets that need a download, such as fetch_openml, are not available.What are the limits?
How do I learn machine learning after trying it?
Useful tools for Matplotlib
Free, browser-based tools that pair well with the Matplotlib Playground - all part of Coddy.