Matplotlib Online: run Python plots in your browser
Loading Python and matplotlib. The first Run takes a little longer.
Write Python code with matplotlib, press Run and get your charts as images right under the code. numpy and pandas are included. There is nothing to install, and your code stays in your browser.
How it works
- Write or paste Python code that uses matplotlib, or pick an example.
- Press Run. The first Run downloads Python and matplotlib, about 27 MB. Later runs on the page reuse them.
- Printed output and plots appear under the code. Each plot has a Download PNG button.
- Stop ends a program that runs too long.
What is included
- matplotlib 3.10.8, numpy 2.4.6, pandas 3.0.2 and the standard library of Python 3.14.
- Line, bar, scatter, histogram and pie charts, subplots, and plots made with pandas DataFrame.plot().
- Several plots in one run, shown in the order your code shows them.
- plt.show() is optional: a figure that is still open when the code ends is shown too.
- If the code fails after drawing, you see the plots drawn so far and the error.
An online Python compiler with matplotlib
This page works like an online Python compiler with matplotlib built in. Your code runs in Python 3.14 inside the browser tab, not on a remote server. Nothing is uploaded: this site has no server that receives your code or your data.
Limits
- Plots are images. Zoom, pan, animation and plot windows are not available.
- Only matplotlib, numpy, pandas and the standard library. seaborn, scipy, plotly and pip install are not available.
- No file upload. Put your data into the code, for example as a list or as CSV text read with pandas.
- input() does not work on this page. For programs that ask for input, use the Python Playground.
- The page needs an internet connection to open and to download Python on the first Run.
FAQ
Do I need to install matplotlib?
No. It loads in your browser on the first Run.
Which versions are used?
Python 3.14 with matplotlib 3.10.8, numpy 2.4.6 and pandas 3.0.2.
Why doesn't a plot window open?
The page draws plots as images. plt.show() puts the image under your code instead of opening a window.
How do I save a plot?
Press Download PNG under the plot. plt.savefig() works in the code, but the file stays inside the page.
Can I use seaborn or plotly?
No. Only matplotlib, numpy, pandas and the standard library are available.
Can I load a CSV file?
Not as a file. Paste the CSV text into the code and read it with pandas.read_csv(io.StringIO(text)).
Is my code uploaded?
No. It runs in your browser. This site has no server that receives it.
Can I run code without plots here?
Yes, printed output is shown too. For programs that need input() or saved snippets, use the Python Playground.